Skip to content
Merged
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
37 changes: 36 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0", "head"]
ruby: ["3.2", "3.3", "3.4", "4.0", "head"]
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
Expand All @@ -31,3 +31,38 @@ jobs:
- run: git config --global user.name 'github-actions[bot]'
- run: git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- run: bundle exec rake test
test-legacy:
name: "Test / Ruby ${{ matrix.ruby }}"
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1"]
env:
BUNDLE_GEMFILE: gemfiles/legacy.gemfile
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
bundler: latest
- run: git config --global user.name 'github-actions[bot]'
- run: git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- run: |
# Work around hard-coded expectation of gemfile location
cp ${BUNDLE_GEMFILE} Gemfile
cp ${BUNDLE_GEMFILE}.lock Gemfile.lock
sed -i 's/path: "\.\."/path: "."/' Gemfile
- run: bundle exec rake test
test-all:
name: "Test / All"
runs-on: ubuntu-latest
needs: test
if: always()
steps:
- name: All tests ok
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some tests failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
/spec/reports/
/tmp/
/Gemfile.lock
/gemfiles/*.lock
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
source "https://rubygems.org"
gemspec

gem "activesupport", "~> 7.1.3" # Needed for factory_bot 6.3
gem "cgi" # Needed for vcr on Ruby 3.5+
gem "factory_bot", "~> 6.3.0"
gem "factory_bot", "~> 6.6.0"
gem "irb"
gem "megatest", "~> 0.11.0"
gem "minitest-snapshots", "~> 1.1"
Expand Down
15 changes: 15 additions & 0 deletions gemfiles/legacy.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

source "https://rubygems.org"
gemspec path: ".."

gem "activesupport", "~> 7.1.3" # Needed for factory_bot 6.3
gem "factory_bot", "~> 6.3.0"
gem "megatest", "~> 0.11.0"
gem "minitest-snapshots", "~> 1.1"
gem "mocha", "~> 3.0"
gem "observer"
gem "openssl"
gem "rake", "~> 13.0"
gem "vcr", "~> 6.2"
gem "webmock", "~> 3.23"