Add GitHub Actions workflow for automated testing#2
Open
Conversation
Copilot
AI
changed the title
[WIP] CI: Add GitHub Action to run tests
Add GitHub Actions workflow for automated testing
Jul 15, 2025
Owner
|
@copilot we need to update Rake, it's causing tests to fail. We can just remove the version restriction here: https://github.com/sshaw/class2/blob/copilot%2Ffix-b6485cde-19d9-4943-beed-ef9a57ede3c8/class2.gemspec#L24 |
Contributor
Author
I've removed the Rake version restriction from line 24 of the gemspec. The change allows the gem to work with modern Rake versions instead of being locked to ~> 10.0. This should fix the test failures in the GitHub Actions workflow. (ed17a73) |
ed17a73 to
e81e123
Compare
Co-authored-by: sshaw <17570+sshaw@users.noreply.github.com>
e81e123 to
0fa39e4
Compare
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.
This PR adds a GitHub Actions workflow to automatically run tests on push and pull requests, addressing the need for continuous integration.
Changes Made
.github/workflows/test.ymlwith a comprehensive CI workflowactions/checkout@v4for code checkoutruby/setup-ruby@v1for Ruby environment setupbundler-cache: truebundle exec rake testWorkflow Features
The workflow triggers on:
mainormasterbranchesmainormasterbranchesThe test matrix ensures compatibility across multiple Ruby versions, providing confidence that the gem works correctly in different environments.
Testing
rake testwith minitest)This workflow can be extended in the future to include appraisal testing for different ActiveSupport versions if needed.
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.