diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8b1001bf..50753957 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 }}" }