Skip to content

Commit 3b9bfca

Browse files
committed
Don't run Rails 7.2 on Ruby 3.0
1 parent 4e596e8 commit 3b9bfca

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/main.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
strategy:
1010
matrix:
1111
ruby-version: ['3.0', '3.3']
12+
gemfile: ['Gemfile', 'Gemfile.rails71']
13+
exclude:
14+
# Rails 7.2 requires Ruby 3.1+
15+
- ruby-version: '3.0'
16+
gemfile: 'Gemfile'
1217

1318
steps:
1419
- uses: actions/checkout@v4
@@ -18,4 +23,4 @@ jobs:
1823
bundler-cache: true
1924

2025
- name: Run tests
21-
run: ./script/test
26+
run: ./script/test ${{matrix.gemfile}}

script/test

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cd ..
1313

1414
echo "---> Running tests"
1515
bundle exec rake
16-
./script/test_example_app
16+
./script/test_example_app $@
1717

1818
bundle exec rake test
1919

script/test_example_app

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
gemfile="${1-Gemfile}"
6+
57
run_example_tests() {
68
bundle
79
yarn install
@@ -21,8 +23,6 @@ run_example_tests() {
2123

2224
cd example
2325

24-
echo "---> Running example tests with default Gemfile"
25-
run_example_tests
26+
echo "---> Running example tests with ${gemfile}"
27+
BUNDLE_GEMFILE=$gemfile run_example_tests
2628

27-
echo "---> Running example tests with Gemfile.rails71"
28-
BUNDLE_GEMFILE=Gemfile.rails71 run_example_tests

0 commit comments

Comments
 (0)