|
77 | 77 | # `dune runtest` — not an optional extra that merely widens |
78 | 78 | # coverage. Dropping it turns the walker suite red, which is |
79 | 79 | # the intended behaviour: see that file's header comment. |
80 | | - # Pin exact version + --ignore-scripts: Sonar githubactions:S8543 |
81 | | - # (unlocked versions) and S6505 (lifecycle scripts). Same binary |
82 | | - # the grammar's package.json asks for (^0.25.0 floor). |
83 | | - run: npm install -g --ignore-scripts tree-sitter-cli@0.25.0 |
| 80 | + # GitHub release binary (no npm postinstall). --ignore-scripts |
| 81 | + # on tree-sitter-cli@0.25.0 left the `tree-sitter` binary missing. |
| 82 | + run: ./scripts/install-tree-sitter-cli.sh |
84 | 83 | - name: Build pinned tree-sitter-rescript grammar |
85 | 84 | run: ./editors/tree-sitter-rescript/scripts/install.sh |
86 | 85 | - name: Build |
@@ -241,10 +240,9 @@ jobs: |
241 | 240 | # so this job needs the same grammar prerequisites as `build`. |
242 | 241 | # Before the skip was removed, this job was green while running |
243 | 242 | # zero walker tests. |
244 | | - # Pin exact version + --ignore-scripts: Sonar githubactions:S8543 |
245 | | - # (unlocked versions) and S6505 (lifecycle scripts). Same binary |
246 | | - # the grammar's package.json asks for (^0.25.0 floor). |
247 | | - run: npm install -g --ignore-scripts tree-sitter-cli@0.25.0 |
| 243 | + # GitHub release binary (no npm postinstall). --ignore-scripts |
| 244 | + # on tree-sitter-cli@0.25.0 left the `tree-sitter` binary missing. |
| 245 | + run: ./scripts/install-tree-sitter-cli.sh |
248 | 246 | - name: Build pinned tree-sitter-rescript grammar |
249 | 247 | run: ./editors/tree-sitter-rescript/scripts/install.sh |
250 | 248 | - name: Run tests with bisect_ppx instrumentation |
@@ -347,17 +345,9 @@ jobs: |
347 | 345 | with: |
348 | 346 | node-version: "20" |
349 | 347 | - name: Install tree-sitter CLI |
350 | | - # npm install of tree-sitter-cli is the fast CI path (~5 s vs. |
351 | | - # ~5 min for `cargo install tree-sitter-cli`). The repo's |
352 | | - # preferred local path is cargo (see editors/tree-sitter-rescript/ |
353 | | - # README.md) — both produce the same `tree-sitter` binary that |
354 | | - # the install script invokes via `command -v`. The version |
355 | | - # tracks `tree-sitter-rescript`'s package.json devDependency |
356 | | - # range. |
357 | | - # Pin exact version + --ignore-scripts: Sonar githubactions:S8543 |
358 | | - # (unlocked versions) and S6505 (lifecycle scripts). Same binary |
359 | | - # the grammar's package.json asks for (^0.25.0 floor). |
360 | | - run: npm install -g --ignore-scripts tree-sitter-cli@0.25.0 |
| 348 | + # GitHub release binary (no npm postinstall). --ignore-scripts |
| 349 | + # on tree-sitter-cli@0.25.0 left the `tree-sitter` binary missing. |
| 350 | + run: ./scripts/install-tree-sitter-cli.sh |
361 | 351 | - name: Build pinned tree-sitter-rescript grammar |
362 | 352 | # Direct script invocation rather than `just install-grammar` — |
363 | 353 | # GitHub Actions runners do not ship `just` preinstalled, and |
|
0 commit comments