ci: add typescript check (no emit, check only types are fully declared)
This commit is contained in:
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
|
|
||||||
frontend-check:
|
frontend-check:
|
||||||
name: Frontend — CSS and JS checks (format, lint, rules)
|
name: Frontend — CSS and JS checks (format, lint, css-rules, types)
|
||||||
needs: changes
|
needs: changes
|
||||||
if: needs.changes.outputs.frontend == 'true'
|
if: needs.changes.outputs.frontend == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -61,16 +61,20 @@ jobs:
|
|||||||
node-version: 25
|
node-version: 25
|
||||||
|
|
||||||
# because we are not using package.json
|
# because we are not using package.json
|
||||||
- name: Install Stylelint and plugins
|
- name: Install Stylelint, TypeScript and plugins
|
||||||
run: |
|
run: |
|
||||||
npm install --global \
|
npm install --global \
|
||||||
stylelint@17 \
|
stylelint@17 \
|
||||||
postcss@8 \
|
postcss@8 \
|
||||||
stylelint-value-no-unknown-custom-properties@6
|
stylelint-value-no-unknown-custom-properties@6 \
|
||||||
|
typescript
|
||||||
|
|
||||||
- name: Run Stylelint
|
- name: Run Stylelint
|
||||||
run: npx stylelint "static/css/**/*.{css,scss}"
|
run: npx stylelint "static/css/**/*.{css,scss}"
|
||||||
|
|
||||||
|
- name: Run TypeScript check
|
||||||
|
run: tsc -p jsconfig.json --noEmit
|
||||||
|
|
||||||
rust-fmt:
|
rust-fmt:
|
||||||
name: Rustfmt
|
name: Rustfmt
|
||||||
needs: changes
|
needs: changes
|
||||||
|
|||||||
Reference in New Issue
Block a user