Skip to content

Add a minimal GitHub Actions CI workflow - #1

Merged
dcherian merged 2 commits into
mainfrom
ci/github-actions
Aug 14, 2026
Merged

dcherian merged 2 commits into
mainfrom
ci/github-actions

Conversation

@dcherian

Copy link
Copy Markdown
Collaborator

Adds .github/workflows/ci.yml: a single test job on ubuntu-latest running

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features

This mirrors the cargo-fmt / cargo-clippy pre-commit hooks so local and CI checks can't drift.

Notes:

  • permissions: {}, persist-credentials: false, and the checkout action pinned to a SHA — needed to pass the repo's own zizmor hook. prek run --all-files passes (zizmor, fmt, clippy).
  • Uses the runner image's preinstalled stable toolchain (plus rustup component add rustfmt clippy) rather than a toolchain action, since there's no rust-toolchain.toml to honor. Happy to pin a toolchain or add an MSRV job if wanted.

🤖 Generated with Claude Code

Runs fmt, clippy, and the test suite on push to main and on pull
requests, mirroring the pre-commit hooks so local and CI checks
cannot drift.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
An empty permissions block leaves GITHUB_TOKEN without contents: read,
which fails the clone on a private repo.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dcherian
dcherian merged commit 071343e into main Aug 14, 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