Skip to content

Commit 740d5bb

Browse files
authored
Add CI job for checking generated fourslash tests (#1227)
1 parent f47373a commit 740d5bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ jobs:
236236
with:
237237
submodules: true
238238
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
239+
with:
240+
node-version: '>=22.16.0'
239241
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
240242
- uses: ./.github/actions/setup-go
241243
with:
@@ -248,6 +250,12 @@ jobs:
248250
- run: node ./internal/lsp/lsproto/_generate/fetchModel.mjs
249251
- run: node ./internal/lsp/lsproto/_generate/generate.mjs
250252

253+
- name: Remove all converted fourslash tests
254+
run: rm -rf internal/fourslash/tests/gen
255+
256+
- name: Regenerate fourslash tests
257+
run: npm run convertfourslash
258+
251259
- run: git add .
252260
- run: git diff --staged --exit-code --stat
253261

0 commit comments

Comments
 (0)