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