Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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