From 8e2a9e12f805a21bb22d63f66787a5170bc02216 Mon Sep 17 00:00:00 2001 From: Gauthier Fiorentino Date: Thu, 14 Mar 2024 17:16:09 +0100 Subject: [PATCH] CI: Adds type checking --- .github/workflows/tests.yml | 2 +- .github/workflows/type-check.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/type-check.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5a09637..c4b8e05 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,6 @@ jobs: node-version: 18.12.1 cache: npm - name: Install - run: npm ci + run: npm ci --prefer-offline - name: Run tests run: npm run test:unit diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml new file mode 100644 index 0000000..08c8310 --- /dev/null +++ b/.github/workflows/type-check.yml @@ -0,0 +1,20 @@ +name: 'Run tests' + +on: [push, workflow_dispatch] + +jobs: + type-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: +# TODO: add version to a .nvmrc or at least a variable + node-version: 18.12.1 + cache: npm + - name: Install + run: npm ci --prefer-offline + - name: Type check + run: npm run type-check