Skip to content

Commit 2c1006f

Browse files
committed
ci(test): update workflow
1 parent 071b3b7 commit 2c1006f

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,8 @@ name: CI
33
on:
44
push:
55
branches: [split_parser]
6-
paths:
7-
- "scripts/*"
8-
- "common/*"
9-
- "*/grammar.js"
10-
- "*/src/**"
11-
- "*/test/**"
12-
- "*/bindings/**"
13-
- "bindings/**"
14-
- "binding.gyp"
15-
- "setup.py"
166
pull_request:
17-
paths:
18-
- "scripts/*"
19-
- "common/*"
20-
- "*/grammar.js"
21-
- "*/src/**"
22-
- "*/test/**"
23-
- "*/bindings/**"
24-
- "bindings/**"
25-
- "binding.gyp"
26-
- "setup.py"
7+
workflow_dispatch:
278

289
jobs:
2910
test:
@@ -32,29 +13,37 @@ jobs:
3213
strategy:
3314
fail-fast: false
3415
matrix:
35-
os: [ubuntu-latest, windows-latest, macos-14]
16+
os: [ubuntu-latest, windows-latest, macos-latest]
3617
steps:
3718
- name: Checkout repository
3819
uses: actions/checkout@v4
39-
- name: Install tree-sitter CLI
40-
uses: tree-sitter/setup-action/cli@v1
20+
21+
- name: Set up tree-sitter
22+
uses: tree-sitter/setup-action@v2
23+
with:
24+
install-lib: false
25+
4126
- name: Set up Node.js
4227
uses: actions/setup-node@v4
4328
with:
4429
node-version: ${{vars.NODE_VERSION}}
30+
4531
- name: Build with all extensions
4632
run: node scripts/build.js
4733
env:
4834
ALL_EXTENSIONS: 1
35+
4936
- name: Run tests
5037
uses: tree-sitter/parser-test-action@v2
5138
with:
5239
test-rust: true
5340
test-parser-cmd: node scripts/test.js
41+
5442
- name: Rebuild with default extensions
5543
run: node scripts/build.js
5644
- name: Verify grammar consistency
5745
run: git diff --exit-code -- */src/grammar.json
46+
5847
fuzz:
5948
name: Fuzz parsers
6049
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)