aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-15 09:48:53 -0500
committerGitHub <noreply@github.com>2023-12-15 14:48:53 +0000
commit730b34c0bbe394fd62afb20b32152139a65b0b60 (patch)
treef926633356b527ccddf0ae603bf25dade3ff4d51
parent1ae752b9fefb3e64114ebb4cd28f1fa0db9137c6 (diff)
Add typescript checks to CI (#350)
* Add typescript checks to CI * Actually save the CI file * Run build-libs before test-ts * Move build libs CI
-rw-r--r--.github/workflows/ci.yml11
-rw-r--r--package.json5
2 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 65d5efb0..14e909f0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -25,11 +25,19 @@ jobs:
- name: Install dependencies
run: npm ci
+ - name: Build Libs
+ run: npm run build-libs
+
- name: Lint JS
run: npm run test-lint-js
env:
CI: true
+ - name: Validate JS Types
+ run: npm run test-ts
+ env:
+ CI: true
+
- name: Lint CSS
run: npm run test-lint-css
env:
@@ -40,9 +48,6 @@ jobs:
env:
CI: true
- - name: Build Libs
- run: npm run build-libs
-
- name: Tests
run: npm run test-code
env:
diff --git a/package.json b/package.json
index e277ce48..adffa549 100644
--- a/package.json
+++ b/package.json
@@ -9,11 +9,12 @@
"scripts": {
"build": "node ./dev/bin/build.js",
"build-libs": "node ./dev/bin/build-libs.js",
- "test": "npm run test-lint-js && npm run test-ts && npm run test-ts-dev && npm run test-ts-test && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-build",
+ "test": "npm run test-lint-js && npm run test-ts && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-build",
"test-lint-js": "npx eslint .",
"test-lint-css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"",
"test-lint-html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"",
- "test-ts": "npx tsc --noEmit --project jsconfig.json",
+ "test-ts": "npm run test-ts-main && npm run test-ts-dev && npm run test-ts-test",
+ "test-ts-main": "npx tsc --noEmit --project jsconfig.json",
"test-ts-dev": "npx tsc --noEmit --project dev/jsconfig.json",
"test-ts-test": "npx tsc --noEmit --project test/jsconfig.json",
"test-code": "vitest run",