Skip to content

Commit 03ee9b9

Browse files
committed
add job to ci.yml
1 parent 5d567f3 commit 03ee9b9

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,23 @@ jobs:
6060
env:
6161
CI: true
6262
SVELTE_NO_ASYNC: true
63+
TSGo:
64+
permissions: {}
65+
runs-on: ubuntu-latest
66+
timeout-minutes: 5
67+
steps:
68+
- uses: actions/checkout@v4
69+
- uses: pnpm/action-setup@v4
70+
- uses: actions/setup-node@v4
71+
with:
72+
node-version: 24
73+
cache: pnpm
74+
- name: install
75+
run: pnpm install --frozen-lockfile
76+
- name: install tsgo
77+
run: cd packages/svelte && pnpm i -D @typescript/native-preview
78+
- name: type check
79+
run: cd packages/svelte && pnpm check:tsgo
6380
Lint:
6481
permissions: {}
6582
runs-on: ubuntu-latest

packages/svelte/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
"build": "node scripts/process-messages && rollup -c && pnpm generate:types && node scripts/check-treeshakeability.js",
142142
"dev": "node scripts/process-messages -w & rollup -cw",
143143
"check": "tsc --project tsconfig.runtime.json && tsc && cd ./tests/types && tsc",
144+
"check:tsgo": "tsgo --project tsconfig.runtime.json && tsgo && cd ./tests/types && tsgo",
144145
"check:watch": "tsc --watch",
145146
"generate:version": "node ./scripts/generate-version.js",
146147
"generate:types": "node ./scripts/generate-types.js && tsc -p tsconfig.generated.json",

0 commit comments

Comments
 (0)