-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (34 loc) · 1.32 KB
/
Copy pathci.yml
File metadata and controls
42 lines (34 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Node 24+ runs the .ts sources directly (native type stripping) — no build, no tsx.
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm ci
- name: Typecheck
run: npx tsc --noEmit
# Regenerate the TextMate grammar and fail if it drifts from the committed file
# (i.e. someone edited the grammar but forgot to regenerate).
- name: Generate editor artifacts (must be in sync)
run: |
node src/cli.ts examples/typescript.ts
git diff --exit-code -- examples/typescript.tmLanguage.json examples/typescript.language-configuration.json examples/typescript.monarch.json examples/typescript.cst-types.ts examples/tree-sitter examples/lezer
# Self-contained suites (each exits non-zero on failure). The conformance /
# coverage / bench tools are excluded here: they need the external TypeScript
# conformance corpus and VS Code's grammar, which aren't available on a runner.
- name: Test
run: |
node test/sanity-check.ts
node test/agnostic.ts
node test/refactor-guard.ts
node test/test-issues.ts