From 730b34c0bbe394fd62afb20b32152139a65b0b60 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 15 Dec 2023 09:48:53 -0500 Subject: 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 --- .github/workflows/ci.yml | 11 ++++++++--- package.json | 5 +++-- 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", -- cgit v1.2.3