From 161aa6ed8abaf71aa252382960890cf2b936f163 Mon Sep 17 00:00:00 2001 From: Norbert Melzer Date: Mon, 26 Jun 2023 09:22:59 +0200 Subject: [PATCH] ci: add preflight tests --- .github/workflows/deploy.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8b1001b..bdd8e32 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 }}" }