File tree Expand file tree Collapse file tree 1 file changed +36
-9
lines changed
Expand file tree Collapse file tree 1 file changed +36
-9
lines changed Original file line number Diff line number Diff line change 55 branches : [ master ]
66
77jobs :
8- verify :
8+ setup :
99 runs-on : ubuntu-latest
10-
11- strategy :
12- matrix :
13- node-version : [ 12.x ]
14-
1510 steps :
1611 - uses : actions/checkout@v2
17- - name : Use Node.js ${{ matrix.node-version }}
18- uses : actions/setup-node@v2
12+ - uses : actions/setup-node@v2
1913 with :
20- node-version : ${{ matrix.node-version }}
14+ node-version : ' 12.x '
2115 cache : ' yarn'
2216 - run : yarn install --pure-lockfile
17+ - run : mkdir tmp && tar --use-compress-program zstd -cf tmp/project.tar.gz --exclude=./tmp .
18+ - uses : actions/upload-artifact@v2
19+ with :
20+ name : project
21+ path : tmp/project.tar.gz
22+ retention-days : 1
23+
24+ lint :
25+ name : Verify / Lint
26+ needs : setup
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/download-artifact@v2
30+ with : { name: project }
31+ - run : tar --use-compress-program zstd -xf project.tar.gz
2332 - run : yarn lint
33+
34+ test :
35+ name : Verify / Test
36+ needs : setup
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/download-artifact@v2
40+ with : { name: project }
41+ - run : tar --use-compress-program zstd -xf project.tar.gz
2442 - run : yarn test
43+
44+ build :
45+ name : Verify / Build
46+ needs : setup
47+ runs-on : ubuntu-latest
48+ steps :
49+ - uses : actions/download-artifact@v2
50+ with : { name: project }
51+ - run : tar --use-compress-program zstd -xf project.tar.gz
2552 - run : yarn build
You can’t perform that action at this time.
0 commit comments