Skip to content

ci: build and verify the ast-grep distribution#19

Closed
edmundmiller wants to merge 2 commits into
ast-grep-outline-rulesfrom
ast-grep-outline
Closed

ci: build and verify the ast-grep distribution#19
edmundmiller wants to merge 2 commits into
ast-grep-outline-rulesfrom
ast-grep-outline

Conversation

@edmundmiller

Copy link
Copy Markdown
Member

Summary

Add a GitHub Actions workflow that builds and verifies the ast-grep distribution.

Per platform (macos-arm64, linux-x64 — the targets in sgconfig.yml):

  • build the tree-sitter parser library with tree-sitter build,
  • verify it exports tree_sitter_nextflow,
  • smoke-test the shipped sgconfig.yml + outline rules with ast-grep@0.44.0 against a sample .nf (asserts the expected symbols are extracted),
  • upload the library as a build artifact.

Triggers on changes to the grammar, parser, sgconfig.yml, rules/, outline/, lib/, or the workflow, plus workflow_dispatch.

Stack

Targets #18 because the smoke test exercises the outline rules added there.

Testing

Workflow YAML validated; smoke-test logic verified locally with ast-grep 0.44.0 against the built parser.

🤖 Generated with Claude Code

edmundmiller and others added 2 commits June 23, 2026 12:47
Add a workflow that builds the tree-sitter parser shared libraries for
macos-arm64 and linux-x64 (the targets in sgconfig.yml), checks each
exports tree_sitter_nextflow, smoke-tests the sgconfig + outline rules
with ast-grep 0.44.0, and uploads the libraries as artifacts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
`npm ci --ignore-scripts` also skipped tree-sitter-cli's postinstall, so
the tree-sitter binary was missing (ENOENT on generate). Install the CLI
globally — building the parser library needs only the CLI, not the
project's node bindings.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@edmundmiller edmundmiller deleted the branch ast-grep-outline-rules June 23, 2026 18:30
@edmundmiller edmundmiller deleted the ast-grep-outline branch June 23, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant