Skip to content

CI for tests and grammar sync; gate releases on tests - #10

Merged
adiled merged 2 commits into
mainfrom
chore/ci-and-grammar-sync
Nov 10, 2026
Merged

adiled merged 2 commits into
mainfrom
chore/ci-and-grammar-sync

Conversation

@adiled

@adiled adiled commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

Nothing ran the tests automatically, and the typeset grammar had no working pipeline. This adds both. release.sh is unchanged.

Changes

  • CI workflow on pull requests and pushes to main:
    • cargo fmt --check
    • cargo clippy with warnings as errors
    • cargo test, which includes the conformance suite
    • a check that docs/grammar.tex matches grammar.ebnf
  • Release workflow: a test job now runs before publish-crate. If it fails, nothing is published to crates.io.
  • scripts/sync_grammar_listings.py: copies grammar.ebnf into the listings of docs/grammar.tex. --check fails when they differ.
  • scripts/build_grammar_pdf.sh: runs the sync, then rebuilds docs/grammar.pdf.
  • Removed scripts/pre-push: it was never installed (git hooks point at .githooks/), and it rebuilt the PDF without syncing the listings.

Notes

  • A failed release test leaves a tag behind. release.sh pushes the tag before the workflow runs, so a red test job means a tag with no crates.io release. Fix main and release the next version.
  • The PDF itself isn't checked in CI, because that would need a TeX install. CI checks the tex source; rebuilding the PDF stays a local step.

…mmar in sync

- New CI workflow: format, clippy, tests (including the conformance
  suite), and a check that docs/grammar.tex matches grammar.ebnf.
- The release workflow runs the tests first; a failure blocks the
  crates.io publish.
- scripts/sync_grammar_listings.py copies grammar.ebnf into the tex
  listings, and scripts/build_grammar_pdf.sh rebuilds the PDF.
- Remove scripts/pre-push, which was never installed and rebuilt the
  PDF without syncing the listings.
@adiled
adiled merged commit 4f994f7 into main Nov 10, 2026
1 check passed
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