From a181d4081e03c5f956a742311cbc3fea80e2a714 Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Mon, 18 May 2026 23:16:09 +0200 Subject: [PATCH] ci: add typescript check (no emit, check only types are fully declared) --- .github/workflows/ci.yml | 10 +++++++--- justfile | 5 ++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f0a3c3a..e66e91c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: - 'tests/**' frontend-check: - name: Frontend — CSS and JS checks (format, lint, rules) + name: Frontend — CSS and JS checks (format, lint, css-rules, types) needs: changes if: needs.changes.outputs.frontend == 'true' runs-on: ubuntu-latest @@ -61,16 +61,20 @@ jobs: node-version: 25 # because we are not using package.json - - name: Install Stylelint and plugins + - name: Install Stylelint, TypeScript and plugins run: | npm install --global \ stylelint@17 \ postcss@8 \ - stylelint-value-no-unknown-custom-properties@6 + stylelint-value-no-unknown-custom-properties@6 \ + typescript - name: Run Stylelint run: npx stylelint "static/css/**/*.{css,scss}" + - name: Run TypeScript check + run: tsc -p jsconfig.json --noEmit + rust-fmt: name: Rustfmt needs: changes diff --git a/justfile b/justfile index 4296eee6..10a8528a 100644 --- a/justfile +++ b/justfile @@ -59,7 +59,10 @@ front-fmt: front-lint: biome lint static/ - tsc -p jsconfig.json + +# test types (JSDOC), using typescript +front-type: + tsc -p jsconfig.json --noEmit # check CSS rules front-rules: