-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drop older versions in test matrix (#46)
* drop older versions in test matrix * get to green * tweak gh actions * adjust Rails mocking * more gh action tweaks * tighten build matrix and supported versions * ci tweaks * remove codeclimate * fix hostname * try explicitly disabling test parallelism * minitest * fix compabitability with sidekiq < 7 * add explicit redis-client dependency * update readme
- Loading branch information
Showing
18 changed files
with
85 additions
and
150 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 |
---|---|---|
@@ -1,69 +1,30 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: | ||
- "2.4" | ||
- "2.5" | ||
- "2.6" | ||
- "2.7" | ||
- "3.0" | ||
- "3.1" | ||
- jruby-9.1 | ||
- jruby-9.2 | ||
- jruby-9.3 | ||
- "3.2" | ||
- jruby-9.4 | ||
sidekiq-version: | ||
- "3.5" | ||
- "4.2" | ||
- "5.1" | ||
- "5.2" | ||
- "6.0" | ||
- "6.1" | ||
- "6.2" | ||
- "6.3" | ||
- "6.4" | ||
- "6.5" | ||
- "7.0" | ||
- "7.1" | ||
- main | ||
exclude: | ||
# sidekiq 3.5 does not work with ruby >= 3 | ||
- ruby-version: "3.0" | ||
sidekiq-version: "3.5" | ||
- ruby-version: "3.1" | ||
sidekiq-version: "3.5" | ||
# sidekiq 6+ only supports ruby >= 2.5 | ||
- ruby-version: "2.4" | ||
sidekiq-version: "6.0" | ||
- ruby-version: "2.4" | ||
sidekiq-version: "6.1" | ||
- ruby-version: "2.4" | ||
sidekiq-version: "6.2" | ||
- ruby-version: "2.4" | ||
sidekiq-version: "6.3" | ||
- ruby-version: "2.4" | ||
sidekiq-version: "6.4" | ||
- ruby-version: "2.4" | ||
sidekiq-version: "6.5" | ||
- ruby-version: "2.4" | ||
sidekiq-version: main | ||
- ruby-version: jruby-9.1 | ||
sidekiq-version: "6.0" | ||
- ruby-version: jruby-9.1 | ||
sidekiq-version: "6.1" | ||
- ruby-version: jruby-9.1 | ||
sidekiq-version: "6.2" | ||
- ruby-version: jruby-9.1 | ||
sidekiq-version: "6.3" | ||
- ruby-version: jruby-9.1 | ||
sidekiq-version: "6.4" | ||
- ruby-version: jruby-9.1 | ||
sidekiq-version: "6.5" | ||
- ruby-version: jruby-9.1 | ||
sidekiq-version: main | ||
services: | ||
redis: | ||
image: redis | ||
|
@@ -72,20 +33,13 @@ jobs: | |
- 6379:6379 | ||
env: | ||
sidekiq: ${{ matrix.sidekiq-version }} | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
timeout-minutes: 5 | ||
- name: Run tests | ||
run: bundle exec rake | ||
continue-on-error: ${{ matrix.sidekiq-version == 'main' }} | ||
timeout-minutes: 5 | ||
- name: Report code coverage | ||
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.sidekiq-version == '6.0' }} | ||
continue-on-error: true | ||
uses: paambaati/[email protected] |
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,19 +1,15 @@ | ||
appraise "sidekiq-3.5" do | ||
gem "sidekiq", "3.5.4" | ||
appraise "sidekiq-6.4" do | ||
gem "sidekiq", "~> 6.4.0" | ||
end | ||
|
||
appraise "sidekiq-4.2" do | ||
gem "sidekiq", "4.2.10" | ||
appraise "sidekiq-6.5" do | ||
gem "sidekiq", "~> 6.5.0" | ||
end | ||
|
||
appraise "sidekiq-5.1" do | ||
gem "sidekiq", "5.1.3" | ||
appraise "sidekiq-7.0" do | ||
gem "sidekiq", "~> 7.0.0" | ||
end | ||
|
||
appraise "sidekiq-5.2" do | ||
gem "sidekiq", "5.2.7" | ||
end | ||
|
||
appraise "sidekiq-6.0" do | ||
gem "sidekiq", "6.0.1" | ||
appraise "sidekiq-7.1" do | ||
gem "sidekiq", "~> 7.1.0" | ||
end |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.