Skip to content

ci: add CI workflow for PRs and pushes to main#32

Merged
codesoda merged 2 commits intomainfrom
worktree-ci-workflow
Apr 8, 2026
Merged

ci: add CI workflow for PRs and pushes to main#32
codesoda merged 2 commits intomainfrom
worktree-ci-workflow

Conversation

@codesoda
Copy link
Copy Markdown
Owner

@codesoda codesoda commented Apr 6, 2026

Summary

  • Adds .github/workflows/ci.yml that runs on every PR and push to main
  • Runs cargo fmt --check, clippy, build, and test with caching via Swatinem/rust-cache@v2
  • Uses concurrency groups to cancel stale runs and save runner minutes
  • Treats warnings as errors (RUSTFLAGS: -D warnings) to match existing release workflow behavior

Closes #31

Test plan

  • Verify CI workflow triggers on this PR
  • Confirm all four steps (fmt, clippy, build, test) pass
  • After merge, enable branch protection requiring the "Rust checks" status

codesoda added 2 commits April 6, 2026 18:24
Runs cargo fmt --check, clippy, build, and test on every PR and push
to main so issues are caught before merge rather than at release time.

Closes #31
Properly wait on spawned child processes in tests and replace
useless format!() with .to_string() in report test helper.
@codesoda codesoda merged commit 71a4bf7 into main Apr 8, 2026
1 check passed
@codesoda codesoda deleted the worktree-ci-workflow branch April 8, 2026 04:57
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.

Add CI workflow: run test suite on PRs and pushes to main

1 participant