chore(ci): type check entire project in ci (#1538)
This commit is contained in:
@@ -38,6 +38,9 @@ jobs:
|
||||
if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'canary'
|
||||
uses: crate-ci/typos@master
|
||||
|
||||
- name: Type check project
|
||||
run: deno task check:types
|
||||
|
||||
- name: Cache dependencies
|
||||
if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'v1.x'
|
||||
run: deno cache --config=www/deno.json src/dev/deps.ts src/server/deps.ts www/main.ts
|
||||
@@ -80,10 +83,6 @@ jobs:
|
||||
- name: Type check init script
|
||||
run: deno check --remote init.ts
|
||||
|
||||
- name: Type check website
|
||||
run: deno check main.ts dev.ts
|
||||
working-directory: www/
|
||||
|
||||
- name: Test website
|
||||
run: deno test -A
|
||||
working-directory: www/
|
||||
@@ -91,11 +90,3 @@ jobs:
|
||||
- name: Type check demo
|
||||
run: deno check --remote main.ts dev.ts
|
||||
working-directory: demo
|
||||
|
||||
- name: Type check tests/fixture
|
||||
run: deno check main.ts dev.ts
|
||||
working-directory: tests/fixture/
|
||||
|
||||
- name: Type check tests/fixture_error
|
||||
run: deno check main.ts dev.ts
|
||||
working-directory: tests/fixture_error/
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"test": "deno test -A --parallel && deno check --config=www/deno.json www/main.ts www/dev.ts && deno check init.ts",
|
||||
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts",
|
||||
"www": "deno task --cwd=www start",
|
||||
"screenshot": "deno run -A www/utils/screenshot.ts"
|
||||
"screenshot": "deno run -A www/utils/screenshot.ts",
|
||||
"check:types": "deno check **/*.ts && deno check **/*.tsx"
|
||||
},
|
||||
"importMap": "./.vscode/import_map.json",
|
||||
"compilerOptions": {
|
||||
|
||||
Reference in New Issue
Block a user