1010 - uses : Brightspace/third-party-actions@actions/setup-node
1111 with :
1212 node-version : ' 14'
13- - uses : Brightspace/third-party-actions@actions/cache
14- id : cache
15- with :
16- path : ' **/node_modules'
17- key : npm-${{ hashFiles('**/package-lock.json') }}
13+ cache : ' npm'
1814 - name : Install dependencies
19- if : steps.cache.outputs.cache-hit != 'true'
2015 run : npm ci
2116 - name : Build
2217 run : npm run build
3530 - uses : Brightspace/third-party-actions@actions/setup-node
3631 with :
3732 node-version : ' 14'
38- - uses : Brightspace/third-party-actions@actions/cache
39- id : cache
40- with :
41- path : ' **/node_modules'
42- key : npm-${{ hashFiles('**/package-lock.json') }}
33+ cache : ' npm'
4334 - name : Install dependencies
44- if : steps.cache.outputs.cache-hit != 'true'
4535 run : npm ci
4636 - name : Build
4737 run : npm run build
@@ -56,23 +46,18 @@ jobs:
5646 - uses : Brightspace/third-party-actions@actions/setup-node
5747 with :
5848 node-version : ' 14'
59- - uses : Brightspace/third-party-actions@actions/cache
60- id : cache
61- with :
62- path : ' **/node_modules'
63- key : npm-${{ hashFiles('**/package-lock.json') }}
49+ cache : ' npm'
6450 - name : Install dependencies
65- if : steps.cache.outputs.cache-hit != 'true'
66- run : npm ci
51+ run : |
52+ npm ci
53+ npm install karma-browserstack-launcher@1 --no-save
6754 - name : Build
6855 run : npm run build
6956 - name : BrowserStack
7057 env :
7158 BROWSERSTACK_USERNAME : ${{ secrets.BROWSERSTACK_USERNAME }}
7259 BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
73- run : |
74- npm install karma-browserstack-launcher@1 --no-save
75- npx karma start karma.bs.conf.js
60+ run : npx karma start karma.bs.conf.js
7661 sauce :
7762 name : Unit Tests (SauceLabs)
7863 timeout-minutes : 10
@@ -83,20 +68,15 @@ jobs:
8368 - uses : Brightspace/third-party-actions@actions/setup-node
8469 with :
8570 node-version : ' 14'
86- - uses : Brightspace/third-party-actions@actions/cache
87- id : cache
88- with :
89- path : ' **/node_modules'
90- key : npm-${{ hashFiles('**/package-lock.json') }}
71+ cache : ' npm'
9172 - name : Install dependencies
92- if : steps.cache.outputs.cache-hit != 'true'
93- run : npm ci
73+ run : |
74+ npm ci
75+ npm install karma-sauce-launcher@2 --no-save
9476 - name : Build
9577 run : npm run build
9678 - name : SauceLabs
9779 env :
9880 SAUCE_USERNAME : Gaudi1
9981 SAUCE_ACCESS_KEY : ${{ secrets.SAUCE_ACCESS_KEY_GAUDI }}
100- run : |
101- npm install karma-sauce-launcher@2 --no-save
102- npx karma start karma.sauce.conf.js
82+ run : npx karma start karma.sauce.conf.js
0 commit comments