From 83bf5d7192ca9b665caba5a1cd06fb71fe59b881 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Wed, 7 Oct 2020 12:39:35 +0200 Subject: [PATCH] fix: add type checking before deploying changes to master --- .github/workflows/pr.yml | 2 +- .github/workflows/prod.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 744200fca..919dce6bc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,4 @@ -name: Check pull request +name: Pull request on: pull_request: diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 9d5c420b8..e0feeaf9c 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -5,10 +5,30 @@ on: branches: [ master ] jobs: + + tsc: + + name: Check types + + runs-on: ubuntu-latest + + steps: + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm ci + + - name: Typescript + run: npm run tsc + deploy: runs-on: ubuntu-latest + needs: tsc + steps: - uses: actions/checkout@v2