Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,41 @@ on:

jobs:
test:
name: "test (ruby: ${{ matrix.ruby-version}}, rspec: ${{ matrix.rspec-version }})"
strategy:
matrix:
ruby-version: ["2.6", "2.7", "3.0", "3.1"]
rspec-version: ["2_x", "3_0", "3_1", "3_2", "3_3", "3_4", "3_5", "3_6", "3_7", "3_8", "3_9", "3_10"]
ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
rspec-version: ["3_4", "3_5", "3_6", "3_7", "3_8", "3_9", "3_10", "3_11", "3_12", "3_13"]
include:
# NOTE: ruby 3.2+ is not compatible with rspec < 3.4
- { ruby-version: "2.6", rspec-version: "2_x" }
- { ruby-version: "2.7", rspec-version: "2_x" }
- { ruby-version: "3.0", rspec-version: "2_x" }
- { ruby-version: "3.1", rspec-version: "2_x" }
- { ruby-version: "2.6", rspec-version: "3_0" }
- { ruby-version: "2.7", rspec-version: "3_0" }
- { ruby-version: "3.0", rspec-version: "3_0" }
- { ruby-version: "3.1", rspec-version: "3_0" }
- { ruby-version: "2.6", rspec-version: "3_1" }
- { ruby-version: "2.7", rspec-version: "3_1" }
- { ruby-version: "3.0", rspec-version: "3_1" }
- { ruby-version: "3.1", rspec-version: "3_1" }
- { ruby-version: "2.6", rspec-version: "3_2" }
- { ruby-version: "2.7", rspec-version: "3_2" }
- { ruby-version: "3.0", rspec-version: "3_2" }
- { ruby-version: "3.1", rspec-version: "3_2" }
- { ruby-version: "2.6", rspec-version: "3_3" }
- { ruby-version: "2.7", rspec-version: "3_3" }
- { ruby-version: "3.0", rspec-version: "3_3" }
- { ruby-version: "3.1", rspec-version: "3_3" }

runs-on: ubuntu-latest

env:
BUNDLE_GEMFILE: gemfiles/rspec_${{ matrix.rspec-version }}.gemfile

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
Expand All @@ -30,8 +53,19 @@ jobs:
run: bundle exec rake

- name: Upload test artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: test-artifacts
name: ruby-${{ matrix.ruby-version }}-rspec-${{ matrix.rspec-version }}
path: tmp

post-test:
needs: test
runs-on: ubuntu-latest
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: test-artifacts
separate-directories: true
delete-merged: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/example/tmp/
/pkg/
/tmp/
gemfiles/*.lock
12 changes: 12 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,15 @@ end
appraise "rspec-3-10" do
gem "rspec", "~> 3.10.0"
end

appraise "rspec-3-11" do
gem "rspec", "~> 3.11.0"
end

appraise "rspec-3-12" do
gem "rspec", "~> 3.12.0"
end

appraise "rspec-3-13" do
gem "rspec", "~> 3.13.0"
end
45 changes: 0 additions & 45 deletions gemfiles/rspec_2_x.gemfile.lock

This file was deleted.

49 changes: 0 additions & 49 deletions gemfiles/rspec_3_0.gemfile.lock

This file was deleted.

49 changes: 0 additions & 49 deletions gemfiles/rspec_3_1.gemfile.lock

This file was deleted.

50 changes: 0 additions & 50 deletions gemfiles/rspec_3_10.gemfile.lock

This file was deleted.

7 changes: 7 additions & 0 deletions gemfiles/rspec_3_11.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.11.0"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/rspec_3_12.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.12.0"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/rspec_3_13.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.13.0"

gemspec path: "../"
50 changes: 0 additions & 50 deletions gemfiles/rspec_3_2.gemfile.lock

This file was deleted.

Loading