forked from adamwiggins/clockwork
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to GitHub Actions for tests workflow (#79)
* Add Tests GHA workflow to replace Travis * Delete .travis.yml * Fix warning on regex ambiguity, wrap in parens Simple fix for this ambiguity warning to wrap the arguments with parens. This warning was reported on all versions of Ruby tested in this update. ``` clockwork/test/clockwork_test.rb:43: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator clockwork/test/clockwork_test.rb:57: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator ``` * Remove gemfiles folder These are no longer needed since we dynamically change the ActiveSupport version installed through an environment variable in the root Gemfile.
- Loading branch information
1 parent
49075c2
commit 2d46957
Showing
7 changed files
with
43 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: [ "2.7", "3.0", "3.1", "3.2", jruby ] | ||
active_support: [ "6.0", "7.0" ] | ||
exclude: | ||
- ruby: "3.0" | ||
active_support: "6.0" | ||
- ruby: "3.1" | ||
active_support: "6.0" | ||
- ruby: "3.2" | ||
active_support: "6.0" | ||
name: Ruby ${{ matrix.ruby }} - ActiveSupport ${{ matrix.active_support }} | ||
env: | ||
ACTIVE_SUPPORT_VERSION: ${{ matrix.active_support }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run Tests | ||
env: | ||
RUBYOPT: "-W:deprecated" # Show Ruby's deprecation warnings | ||
run: | | ||
bundle exec rake |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
rails_version = ENV.fetch("ACTIVE_SUPPORT_VERSION", "7.0") | ||
|
||
gem "activesupport", "~> #{rails_version}" | ||
gem "minitest", "~> 5.0" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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