Skip to content

Commit

Permalink
ci(editor): add type-check (#7427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix authored Nov 23, 2024
1 parent 4d6bd07 commit 9522d52
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/ci_vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ jobs:
working-directory: editors/vscode
run: pnpm run lint

type-check:
name: Type-Check
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: ./.github/actions/pnpm

- name: Type-Check VSCode
working-directory: editors/vscode
run: pnpm run type-check

test:
name: Test
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion editors/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
"server:build:debug": "cargo build -p oxc_language_server",
"server:build:release": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server --release",
"lint": "npx oxlint --config=oxlint.json --tsconfig=tsconfig.json",
"test": "esbuild client/config.spec.ts --bundle --outfile=out/config.spec.js --external:vscode --format=cjs --platform=node --target=node16 --minify --sourcemap && vscode-test"
"test": "esbuild client/config.spec.ts --bundle --outfile=out/config.spec.js --external:vscode --format=cjs --platform=node --target=node16 --minify --sourcemap && vscode-test",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
Expand Down

0 comments on commit 9522d52

Please sign in to comment.