Repository navigation
CI for tests and grammar sync; gate releases on tests - #10
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Nothing ran the tests automatically, and the typeset grammar had no working pipeline. This adds both.
release.shis unchanged.Changes
main:cargo fmt --checkcargo clippywith warnings as errorscargo test, which includes the conformance suitedocs/grammar.texmatchesgrammar.ebnfpublish-crate. If it fails, nothing is published to crates.io.scripts/sync_grammar_listings.py: copiesgrammar.ebnfinto the listings ofdocs/grammar.tex.--checkfails when they differ.scripts/build_grammar_pdf.sh: runs the sync, then rebuildsdocs/grammar.pdf.scripts/pre-push: it was never installed (git hooks point at.githooks/), and it rebuilt the PDF without syncing the listings.Notes
release.shpushes the tag before the workflow runs, so a red test job means a tag with no crates.io release. Fixmainand release the next version.