File tree 3 files changed +20
-25
lines changed
3 files changed +20
-25
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
+ BUNDLE_GEMFILE= " ${1-Gemfile} " ./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
- run_example_tests () {
6
- bundle
7
- yarn install
8
-
9
- # test a normal test run
10
- bundle exec rake db:test:prepare
11
- NODE_OPTIONS=--openssl-legacy-provider RAILS_ENV=test bundle exec rake assets:precompile
12
- bundle exec rake cypress:run
13
-
14
- # test that passing options works (by printing help)
15
- if ! bundle exec rake cypress:run CYPRESS_RAILS_CYPRESS_OPTS=" -h" | grep -q " Usage: cypress run \[options\]" ; then
16
- echo " Failed to pass options to cypress run"
17
- exit 1
18
- fi
19
- }
20
-
21
-
22
5
cd example
23
-
24
- echo " ---> Running example tests with default Gemfile"
25
- run_example_tests
26
-
27
- echo " ---> Running example tests with Gemfile.rails71"
28
- BUNDLE_GEMFILE=Gemfile.rails71 run_example_tests
6
+ bundle
7
+ yarn install
8
+
9
+ # test a normal test run
10
+ bundle exec rake db:test:prepare
11
+ NODE_OPTIONS=--openssl-legacy-provider RAILS_ENV=test bundle exec rake assets:precompile
12
+ bundle exec rake cypress:run
13
+
14
+ # test that passing options works (by printing help)
15
+ if ! bundle exec rake cypress:run CYPRESS_RAILS_CYPRESS_OPTS=" -h" | grep -q " Usage: cypress run \[options\]" ; then
16
+ echo " Failed to pass options to cypress run"
17
+ exit 1
18
+ fi
You can’t perform that action at this time.
0 commit comments