File tree Expand file tree Collapse file tree 1 file changed +45
-15
lines changed Expand file tree Collapse file tree 1 file changed +45
-15
lines changed Original file line number Diff line number Diff line change 11name : CI
2+
23on : [push]
4+
5+ env :
6+ NODE_VERSION : 12.x
7+
38jobs :
4- build :
9+ install :
510 runs-on : ubuntu-latest
611
712 steps :
813 - name : Begin CI...
914 uses : actions/checkout@v2
10-
11- - name : Use Node 12
15+ - name : Use Node ${{ env.NODE_VERSION }}
1216 uses : actions/setup-node@v2
1317 with :
14- node-version : 12
15-
16- # - name: Use cached node_modules
17- # id: cache
18- # uses: actions/cache@v2
19- # with:
20- # path: node_modules
21- # key: nodeModules-${{ hashFiles('**/yarn.lock') }}
22- # restore-keys: |
23- # nodeModules-
24-
18+ node-version : ${{ env.NODE_VERSION }}
19+ - uses : actions/cache@v2
20+ with :
21+ path : ' **/node_modules'
22+ key : ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
2523 - name : Install dependencies
26- # if: steps.cache.outputs.cache-hit != 'true'
2724 run : yarn install --frozen-lockfile
2825 env :
2926 CI : true
3027
28+ lint :
29+ runs-on : ubuntu-latest
30+ needs : [install]
31+
32+ steps :
33+ - name : Begin CI...
34+ uses : actions/checkout@v2
35+ - uses : actions/cache@v2
36+ with :
37+ path : ' **/node_modules'
38+ key : ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
3139 - name : Lint
3240 run : yarn lint
3341 env :
3442 CI : true
3543
44+ test :
45+ runs-on : ubuntu-latest
46+ needs : [install]
47+
48+ steps :
49+ - name : Begin CI...
50+ uses : actions/checkout@v2
51+ - uses : actions/cache@v2
52+ with :
53+ path : ' **/node_modules'
54+ key : ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
3655 - name : Test
3756 run : yarn test
3857 env :
3958 CI : true
4059
60+ build :
61+ runs-on : ubuntu-latest
62+ needs : [install]
63+
64+ steps :
65+ - name : Begin CI...
66+ uses : actions/checkout@v2
67+ - uses : actions/cache@v2
68+ with :
69+ path : ' **/node_modules'
70+ key : ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
4171 - name : Build
4272 run : yarn build
4373 env :
You can’t perform that action at this time.
0 commit comments