Skip to content

Commit 95ff8ae

Browse files
authored
Merge pull request #10 from modernweb-pl/ci
feat(ci): verify / run as parallel jobs
2 parents 9993b58 + 84d5810 commit 95ff8ae

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

.github/workflows/verify.yml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,48 @@ on:
55
branches: [ master ]
66

77
jobs:
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

0 commit comments

Comments
 (0)