ci: add testing, linting, and Dependabot auto-merge - #21
Open
moyom96 wants to merge 1 commit into
Open
Conversation
Add GitHub Actions CI running Standard (lint) and RSpec (test) on pushes to main and all pull requests, pinned to Ruby 3.3.6. Configure Dependabot for weekly bundler and github-actions updates, with a workflow that enables auto-merge for minor and patch version bumps only. Major updates are left for manual review.
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.
Context
The repository had no CI. There was nothing enforcing tests or style on pull requests, and Dependabot updates required fully manual review and merge. This adds automated testing, linting, and hands-off merging for low-risk dependency bumps.
What Changed
.github/workflows/ci.ymlruns on pushes tomainand all pull requests, with two parallel jobs pinned to Ruby 3.3.6 (matchingmise.toml):lint→bundle exec standardrbtest→bundle exec rspecbundler-cache: trueand cancels superseded in-progress runs per ref..github/dependabot.ymlschedules weekly version updates forbundlerandgithub-actions, labeleddependencies..github/workflows/dependabot-auto-merge.ymlreads update metadata viadependabot/fetch-metadataand enables auto-merge (squash) only forsemver-minorandsemver-patchbumps. Major updates are left for manual review.How to Test
lintandtestchecks appear and run.Deployment Tasks
Auto-merge will not function on code alone. In repository settings:
mainrequiring thelintandteststatus checks to pass. Without this, an auto-merged PR could merge before CI is green.Notes
flay_collector_specrequire and the existing Standard violations lands onmain. No source files were touched here, since those fixes are handled separately.