@@ -8,46 +8,29 @@ permissions:
88 contents : read
99
1010jobs :
11- # This is umbrella job for all tests needed to pass to make it simpler
12- # to maintain GitHub Actions status required checks since job names and
13- # amount change over the time and it is easier to maintian having just
14- # this umbrella check set as required.
15- status_check :
16- name : All required tests passing check
17- needs : [rails]
18- runs-on : ubuntu-24.04
19- if : always()
20- steps :
21- - run : /bin/${{ (needs.rails.result == 'success' || needs.rails.result == 'skipped') }}
22-
2311 rails :
2412 strategy :
2513 fail-fast : false
2614 matrix :
27- rubygems :
28- - name : locked
29- version : " 4.0.8"
30- - name : latest
31- version : latest
32- ruby_version : ["4.0.2"]
3315 tests :
34- - name : general
16+ - id : general
17+ name : General
3518 command : test
36- - name : system
19+ - id : system
20+ name : System
3721 command : test:system
38- include :
39- - rubygems : { name: latest, version: latest }
40- ruby_version : " 4.0.2"
41- tests : { name: "avo without pro", command: "test test/*/avo" }
42- name : Rails tests ${{ matrix.tests.name }} (RubyGems ${{ matrix.rubygems.name }}, Ruby ${{ matrix.ruby_version }})
43- runs-on : ubuntu-22.04
22+ - id : avo-without-pro
23+ name : Avo (without Pro)
24+ command : " test test/*/avo"
25+ name : Rails tests ${{ matrix.tests.name }}
26+ runs-on : ubuntu-24.04
4427 env :
45- RUBYGEMS_VERSION : ${{ matrix.rubygems.version }}
28+ RUBYGEMS_VERSION : " 4.0.8 "
4629 # Fail hard when Toxiproxy is not running to ensure all tests (even Toxiproxy optional ones) are passing
4730 REQUIRE_TOXIPROXY : true
4831 TOXIPROXY_LISTEN_HOST : " 0.0.0.0"
4932 TOXIPROXY_UPSTREAM : " search:9200"
50- REQUIRE_AVO_PRO : ${{ github.secret_source != 'None' && matrix.tests.name != 'avo without pro' }}
33+ REQUIRE_AVO_PRO : ${{ github.secret_source != 'None' && matrix.tests.id != 'avo- without- pro' }}
5134 AVO_LICENSE_KEY : ${{ secrets.AVO_LICENSE_KEY }}
5235 BUNDLE_PACKAGER__DEV : ${{ secrets.BUNDLE_PACKAGER__DEV }}
5336 steps :
5841 - name : Setup rubygems.org
5942 uses : ./.github/actions/setup-rubygems.org
6043 with :
61- ruby-version : ${{ matrix.ruby_version }}
62- rubygems-version : ${{ matrix.rubygems.version }}
63- install-avo-pro : ${{ matrix.tests.name != 'avo without pro' }}
44+ ruby-version : " 4.0.2 "
45+ rubygems-version : " 4.0.8 "
46+ install-avo-pro : ${{ matrix.tests.id != 'avo- without- pro' }}
6447
6548 - name : Tests ${{ matrix.tests.name }}
6649 id : test-all
@@ -70,12 +53,12 @@ jobs:
7053 if : ${{ failure() && steps.test-all.outcome == 'failure' }}
7154 uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
7255 with :
73- name : capybara-screenshots-${{ matrix.tests.name }}-${{ matrix.rubygems.name }}
56+ name : capybara-screenshots-${{ matrix.tests.name }}
7457 path : tmp/capybara
7558 if-no-files-found : ignore
7659
7760 - name : Upload coverage to Codecov
78- if : matrix.rubygems.name == 'locked ' && (success() || failure())
61+ if : matrix.tests.id != 'avo-without-pro ' && (success() || failure())
7962 uses : codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
8063 env :
8164 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
0 commit comments