From c286d0cad012fbfe5dc1437e16c922a6187cce81 Mon Sep 17 00:00:00 2001 From: Marko Kajzer Date: Mon, 9 Sep 2024 23:43:50 +0200 Subject: [PATCH] ci: add typecheck --- .github/workflows/ci.yml | 16 +++++++++++++--- package.json | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca4ddea..f9195dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 with: node-version: '20.x' @@ -28,7 +27,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 with: node-version: '20.x' @@ -37,12 +35,24 @@ jobs: - run: npm install - run: npm run lint:ci - test: + typecheck: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: npm + - run: npm install + - run: npm run typecheck + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20.x' diff --git a/package.json b/package.json index 9285b68..56de7bd 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "start": "npm run build && npm run serve", "test": "jest", "translations:download": "ts-node lib/downloadTranslations.ts", - "typecheck": "tsc" + "typecheck": "tsc --noEmit" }, "_moduleAliases": { "~": "./dist/src"