Skip to content

Commit

Permalink
feat(ci): parallel without artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagith committed Dec 28, 2021
1 parent 95ff8ae commit 6373636
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches: [ master ]

jobs:
setup:
lint:
name: Verify / Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -14,39 +15,28 @@ jobs:
node-version: '12.x'
cache: 'yarn'
- run: yarn install --pure-lockfile
- run: mkdir tmp && tar --use-compress-program zstd -cf tmp/project.tar.gz --exclude=./tmp .
- uses: actions/upload-artifact@v2
with:
name: project
path: tmp/project.tar.gz
retention-days: 1

lint:
name: Verify / Lint
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with: { name: project }
- run: tar --use-compress-program zstd -xf project.tar.gz
- run: yarn lint

test:
name: Verify / Test
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with: { name: project }
- run: tar --use-compress-program zstd -xf project.tar.gz
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
cache: 'yarn'
- run: yarn install --pure-lockfile
- run: yarn test

build:
name: Verify / Build
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with: { name: project }
- run: tar --use-compress-program zstd -xf project.tar.gz
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
cache: 'yarn'
- run: yarn install --pure-lockfile
- run: yarn build

0 comments on commit 6373636

Please sign in to comment.