From 6571ed22f18b3ad670f4d7e2c6d922e0bbae7269 Mon Sep 17 00:00:00 2001 From: thepassle Date: Wed, 3 Apr 2024 11:18:28 +0200 Subject: [PATCH] chore: typecheck in pipeline --- .github/workflows/{node.js.yml => test.yml} | 2 +- .github/workflows/typecheck.yml | 29 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) rename .github/workflows/{node.js.yml => test.yml} (98%) create mode 100644 .github/workflows/typecheck.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/test.yml similarity index 98% rename from .github/workflows/node.js.yml rename to .github/workflows/test.yml index cc5c8be..8ca0826 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: branches: [ "main" ] jobs: - build: + test: runs-on: ubuntu-latest diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml new file mode 100644 index 0000000..12d391e --- /dev/null +++ b/.github/workflows/typecheck.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Typecheck + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + typecheck: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run lint:types \ No newline at end of file