From aad7d48c1e579519cfbabf4a992b31a94f444a55 Mon Sep 17 00:00:00 2001 From: Erik Golinelli Date: Sun, 12 May 2024 02:29:12 +0200 Subject: [PATCH] allows tsc to fail in ci tests --- .github/workflows/ci.yml | 18 +++++++++++++----- tsconfig.json | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77f0543..d9de309 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,15 +3,24 @@ on: - push - pull_request jobs: + build: + name: Build with tsc + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - run: npm install + - run: npx tsc test: - name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }} + name: Test ${{ matrix.node-version }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - node-version: - - 18 - - 20 + node: [ 18, 20 ] os: - ubuntu-latest - windows-latest @@ -21,5 +30,4 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npx tsc - run: npm test diff --git a/tsconfig.json b/tsconfig.json index 5dd7090..2186fcd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "allowJs": true, // Check js files for errors - "checkJs": false, + "checkJs": true, // the directory sources are in "rootDir": "src",