File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
matrix :
11
11
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'
12
17
13
18
steps :
14
19
- uses : actions/checkout@v4
18
23
bundler-cache : true
19
24
20
25
- name : Run tests
21
- run : ./script/test
26
+ run : ./script/test ${{matrix.gemfile}}
Original file line number Diff line number Diff line change 13
13
14
14
echo " ---> Running tests"
15
15
bundle exec rake
16
- ./script/test_example_app
16
+ ./script/test_example_app $@
17
17
18
18
bundle exec rake test
19
19
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ gemfile=" ${1-Gemfile} "
6
+
5
7
run_example_tests () {
6
8
bundle
7
9
yarn install
@@ -21,8 +23,6 @@ run_example_tests() {
21
23
22
24
cd example
23
25
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
26
28
27
- echo " ---> Running example tests with Gemfile.rails71"
28
- BUNDLE_GEMFILE=Gemfile.rails71 run_example_tests
You can’t perform that action at this time.
0 commit comments