Skip to content

Commit

Permalink
ci: add preflight tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NobbZ committed Jun 26, 2023
1 parent c2e3c62 commit 161aa6e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,29 @@ on:
push:

jobs:
preflight:
runs-on: ubuntu-20.04
strategy:
matrix:
command:
- test --verbose
- lint
# - typecheck
steps:
- uses: actions/checkout@v3
with: { token: "${{ secrets.GITHUB_TOKEN }}" }
- uses: actions/setup-node@v3
with:
node-version-file: ".tool-versions"
cache: "yarn"
cache-dependency-path: "yarn.lock"
- run: yarn install
- run: yarn ${{matrix.command}}

deploy:
runs-on: ubuntu-20.04
needs:
- preflight
steps:
- uses: actions/checkout@v3
with: { token: "${{ secrets.GITHUB_TOKEN }}" }
Expand Down

0 comments on commit 161aa6e

Please sign in to comment.