Add GitHub Actions CI workflow for Go - #3
Merged
Conversation
Runs `make parser` to generate the yacc-derived parser sources, then `go build ./...` and `go test ./...` on push and pull_request.
The .y grammars and generated .go files now live in parser/, so update the parser, generate, fmt, and clean targets to point at the new locations. The %arser.go pattern rule didn't compose cleanly with a directory prefix, so it's split into explicit parser/parser.go and parser/hintparser.go rules. genkeyword is built into parser/ so the //go:generate ./genkeyword directive in parser/generate.go resolves.
Regenerate parser.go and hintparser.go from the .y grammars on every run, then `git diff --exit-code` against the working tree. If the committed files don't match a fresh `make parser`, the job fails with a hint to rerun and commit.
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
This PR adds a GitHub Actions continuous integration workflow to automatically build and test the Go project on push and pull request events.
Key Changes
.github/workflows/go.ymlworkflow file that:mainandmasterbranchesmake parsergo build ./...go test ./...Details
The workflow runs on the latest Ubuntu environment and uses standard GitHub Actions for Go setup. This ensures code quality and compatibility are validated automatically for all contributions.
https://claude.ai/code/session_01UZcF2NBhUS8AdGgBasRtF1