11name : Tests
2- on : [push, pull_request]
2+ on :
3+ push :
4+ branches : [master]
5+ # Triggers the workflow on pull request events.
6+ pull_request :
7+ types : [opened, reopened, synchronize]
8+ # Allows you to run this workflow manually from the Actions tab
9+ workflow_dispatch :
10+
11+ # This allows a subsequently queued workflow run to interrupt previous runs.
12+ concurrency :
13+ group : " ${{ github.workflow }} @ ${{ github.ref }}"
14+ cancel-in-progress : true
315
416permissions :
517 contents : read
618
719jobs :
20+ test_results :
21+ name : Verify Stable Test Results
22+ needs : tests
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Check stable test results
26+ run : |
27+ [[ "${{ needs.tests.outputs.stable_failed }}" == "1" ]]
828 tests :
929 runs-on : ubuntu-latest
1030 env :
@@ -17,31 +37,22 @@ jobs:
1737 - " 3.2"
1838 - " jruby-9.4.14.0"
1939 gemfile :
20- - gemfiles/ar81_beta.gemfile
21- - gemfiles/ar80.gemfile
22- - gemfiles/ar72.gemfile
23- channel : ['stable']
40+ - gemfiles/ar81.gemfile
41+ channel : ["stable"]
2442 exclude :
2543 - ruby : " jruby-9.4.14.0"
26- gemfile : gemfiles/ar81_beta.gemfile
27- channel : ' stable'
28- - ruby : " jruby-9.4.14.0"
29- gemfile : gemfiles/ar80.gemfile
30- channel : ' stable'
44+ gemfile : gemfiles/ar81.gemfile
45+ channel : " stable"
3146 include :
3247 - ruby : head
33- gemfile : gemfiles/ar80.gemfile
34- channel : ' experimental'
35- - ruby : head
36- gemfile : gemfiles/ar72.gemfile
37- channel : ' experimental'
38- - ruby : jruby-head
39- gemfile : gemfiles/ar80.gemfile
40- channel : ' experimental'
48+ gemfile : gemfiles/ar81.gemfile
49+ channel : " experimental"
4150 - ruby : jruby-head
42- gemfile : gemfiles/ar72 .gemfile
43- channel : ' experimental'
51+ gemfile : gemfiles/ar81 .gemfile
52+ channel : " experimental"
4453 continue-on-error : ${{ matrix.channel != 'stable' }}
54+ outputs :
55+ stable_failed : ${{ steps.mark_failure.outputs.failure }}
4556 steps :
4657 - name : Set Up Gems
4758 uses : actions/checkout@v4
5465 bundler-cache : true
5566 - name : Test
5667 run : bundle exec rake
68+ - name : Mark failure
69+ id : mark_failure
70+ if : ${{ failure() && matrix.channel == 'stable' }}
71+ run : echo "failure=1" >> $GITHUB_OUTPUT
0 commit comments