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