File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,25 @@ jobs:
14
14
- uses : actions/setup-node@v1
15
15
with :
16
16
node-version : ' 12.x'
17
- - name : npm install, build, and test
18
- run : npm ci
19
- - name : build
20
- run : npm run prepare
17
+ - name : Cache node modules
18
+ uses : actions/cache@v1
21
19
env :
22
- CI : true
20
+ cache-name : cache-node-modules
21
+ with :
22
+ path : ~/.npm
23
+ # This uses the same name as the build-action so we can share the caches.
24
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-build-${{ env.cache-name }}-
27
+ ${{ runner.os }}-build-
28
+ ${{ runner.os }}-
29
+ - run : npm ci
23
30
- name : build
24
- run : npm test
25
- env :
26
- CI : true
27
- - name : saucelabs
28
- run : npm run test:browser
31
+ run : npm run prepare
32
+ - name : test
33
+ run : |
34
+ npm run lint
35
+ npm run test:browsers
29
36
env :
30
37
CI : true
31
38
SAUCE_USERNAME : ${{ secrets.SAUCE_USERNAME }}
You can’t perform that action at this time.
0 commit comments