Skip to content

Commit 6373636

Browse files
committed
feat(ci): parallel without artifact
1 parent 95ff8ae commit 6373636

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

.github/workflows/verify.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches: [ master ]
66

77
jobs:
8-
setup:
8+
lint:
9+
name: Verify / Lint
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v2
@@ -14,39 +15,28 @@ jobs:
1415
node-version: '12.x'
1516
cache: 'yarn'
1617
- 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
3218
- run: yarn lint
3319

3420
test:
3521
name: Verify / Test
36-
needs: setup
3722
runs-on: ubuntu-latest
3823
steps:
39-
- uses: actions/download-artifact@v2
40-
with: { name: project }
41-
- run: tar --use-compress-program zstd -xf project.tar.gz
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v2
26+
with:
27+
node-version: '12.x'
28+
cache: 'yarn'
29+
- run: yarn install --pure-lockfile
4230
- run: yarn test
4331

4432
build:
4533
name: Verify / Build
46-
needs: setup
4734
runs-on: ubuntu-latest
4835
steps:
49-
- uses: actions/download-artifact@v2
50-
with: { name: project }
51-
- run: tar --use-compress-program zstd -xf project.tar.gz
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-node@v2
38+
with:
39+
node-version: '12.x'
40+
cache: 'yarn'
41+
- run: yarn install --pure-lockfile
5242
- run: yarn build

0 commit comments

Comments
 (0)