Skip to content

Commit a8dd5d1

Browse files
committed
👷 GHA workflow updates
1 parent ddff861 commit a8dd5d1

File tree

9 files changed

+40
-66
lines changed

9 files changed

+40
-66
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ jobs:
6565
with:
6666
mongodb-version: "8.0"
6767

68-
- uses: amancevice/setup-code-climate@v2
69-
name: CodeClimate Install
70-
if: ${{ github.event_name != 'pull_request' }}
71-
with:
72-
cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}
73-
7468
- name: Checkout
7569
uses: actions/checkout@v4
7670

@@ -82,11 +76,6 @@ jobs:
8276
bundler: "${{ matrix.bundler }}"
8377
bundler-cache: false
8478

85-
- name: CodeClimate Pre-build Notification
86-
run: cc-test-reporter before-build
87-
if: ${{ github.event_name != 'pull_request' }}
88-
continue-on-error: ${{ matrix.experimental != 'false' }}
89-
9079
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
9180
# We need to do this first to get appraisal installed.
9281
# NOTE: This does not use the main Gemfile at all.
@@ -97,11 +86,6 @@ jobs:
9786
- name: Tests for ${{ matrix.ruby }}@current via ${{ matrix.exec_cmd }}
9887
run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}
9988

100-
- name: CodeClimate Post-build Notification
101-
run: cc-test-reporter after-build
102-
if: ${{ github.event_name != 'pull_request' }}
103-
continue-on-error: ${{ matrix.experimental != 'false' }}
104-
10589
- name: Code Coverage Summary Report
10690
uses: irongut/CodeCoverageSummary@v1.3.0
10791
if: ${{ github.event_name == 'pull_request' }}
@@ -114,7 +98,7 @@ jobs:
11498
hide_complexity: true
11599
indicators: true
116100
output: both
117-
thresholds: '69 80'
101+
thresholds: '100 100'
118102
continue-on-error: ${{ matrix.experimental != 'false' }}
119103

120104
- name: Add Coverage PR Comment
@@ -125,13 +109,15 @@ jobs:
125109
path: code-coverage-results.md
126110
continue-on-error: ${{ matrix.experimental != 'false' }}
127111

128-
- name: Coveralls
112+
- name: Upload coverage to Coveralls
129113
uses: coverallsapp/github-action@master
130114
with:
131115
github-token: ${{ secrets.GITHUB_TOKEN }}
132116
continue-on-error: ${{ matrix.experimental != 'false' }}
133117

134-
- name: Upload results to Codecov
118+
- name: Upload coverage to CodeCov
135119
uses: codecov/codecov-action@v5
136120
with:
121+
fail_ci_if_error: true # optional (default = false)
137122
token: ${{ secrets.CODECOV_TOKEN }}
123+
verbose: true # optional (default = false)

.github/workflows/current.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,17 @@ jobs:
7575
bundler: latest
7676

7777
# truffleruby-24.1
78-
# (according to documentation: targets Ruby 3.3 compatibility)
79-
# (according to runtime: targets Ruby 3.2 compatibility)
8078
- ruby: "truffleruby"
8179
appraisal: "ar-8-0"
8280
exec_cmd: "spec:orm:active_record"
8381
gemfile: "Appraisal.root"
84-
rubygems: latest
85-
bundler: latest
82+
rubygems: default
83+
bundler: default
8684

8785
# jruby-9.4 (targets Ruby 3.1 compatibility)
8886
- ruby: "jruby"
89-
appraisal: "current"
90-
exec_cmd: "rake spec"
87+
appraisal: "ar-8-0"
88+
exec_cmd: "spec:orm:active_record"
9189
gemfile: "Appraisal.root"
9290
rubygems: default
9391
bundler: default

.github/workflows/heads.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,24 @@ jobs:
3939
# NOTE: Heads use default rubygems / bundler; their defaults are custom, unreleased, and from the future!
4040
# ruby-head
4141
- ruby: "ruby-head"
42-
appraisal: "head"
43-
exec_cmd: "rake spec"
42+
appraisal: "ar-8-0"
43+
exec_cmd: "spec:orm:active_record"
4444
gemfile: "Appraisal.root"
4545
rubygems: default
4646
bundler: default
4747

4848
# truffleruby-head
4949
- ruby: "truffleruby-head"
50-
appraisal: "head"
51-
exec_cmd: "rake spec"
50+
appraisal: "ar-8-0"
51+
exec_cmd: "spec:orm:active_record"
5252
gemfile: "Appraisal.root"
5353
rubygems: default
5454
bundler: default
5555

5656
# jruby-head
5757
- ruby: "jruby-head"
58-
appraisal: "head"
59-
exec_cmd: "rake spec"
58+
appraisal: "ar-8-0"
59+
exec_cmd: "spec:orm:active_record"
6060
gemfile: "Appraisal.root"
6161
rubygems: default
6262
bundler: default

.github/workflows/jruby.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,26 @@ jobs:
3535
strategy:
3636
matrix:
3737
include:
38-
# TODO: truffleruby does not support upgrading rubygems; VALIDATE ASSUMPTION that same applies to JRuby
39-
# jruby-9.1 (targets Ruby 2.3 compatibility)
40-
- ruby: "jruby-9.1"
41-
appraisal: "ruby-2-3"
42-
exec_cmd: "rake spec"
43-
gemfile: "Appraisal.root"
44-
rubygems: default
45-
bundler: default
46-
4738
# jruby-9.2 (targets Ruby 2.5 compatibility)
4839
- ruby: "jruby-9.2"
49-
appraisal: "ruby-2-5"
50-
exec_cmd: "rake spec"
40+
appraisal: "ar-6-1"
41+
exec_cmd: "rake spec:orm:active_record"
5142
gemfile: "Appraisal.root"
5243
rubygems: default
5344
bundler: default
5445

5546
# jruby-9.3 (targets Ruby 2.6 compatibility)
5647
- ruby: "jruby-9.3"
57-
appraisal: "ruby-2-6"
58-
exec_cmd: "rake spec"
48+
appraisal: "ar-6-1"
49+
exec_cmd: "rake spec:orm:active_record"
5950
gemfile: "Appraisal.root"
6051
rubygems: default
6152
bundler: default
6253

6354
# jruby-9.4 (targets Ruby 3.1 compatibility)
6455
- ruby: "jruby-9.4"
65-
appraisal: "ruby-3-1"
66-
exec_cmd: "rake spec"
56+
appraisal: "ar-7-2"
57+
exec_cmd: "rake spec:orm:active_record"
6758
gemfile: "Appraisal.root"
6859
rubygems: default
6960
bundler: default

.github/workflows/legacy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
include:
3939
# Ruby 3.0
4040
- ruby: "ruby-3.0"
41-
appraisal: "ruby-3-0"
42-
exec_cmd: "rake spec"
41+
appraisal: "ar-7-1"
42+
exec_cmd: "rake spec:orm:active_record"
4343
gemfile: "Appraisal.root"
4444
rubygems: '3.5.23'
4545
bundler: '2.5.23'

.github/workflows/supported.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,24 @@ jobs:
3737
include:
3838
# Ruby 3.1
3939
- ruby: "ruby-3.1"
40-
appraisal: "ruby-3-1"
41-
exec_cmd: "rake spec"
40+
appraisal: "ar-7-2"
41+
exec_cmd: "rake spec:orm:active_record"
4242
gemfile: "Appraisal.root"
4343
rubygems: latest
4444
bundler: latest
4545

4646
# Ruby 3.2
4747
- ruby: "ruby-3.2"
48-
appraisal: "ruby-3-2"
49-
exec_cmd: "rake spec"
48+
appraisal: "ar-8-0"
49+
exec_cmd: "rake spec:orm:active_record"
5050
gemfile: "Appraisal.root"
5151
rubygems: latest
5252
bundler: latest
5353

5454
# Ruby 3.3
5555
- ruby: "ruby-3.3"
56-
appraisal: "ruby-3-3"
57-
exec_cmd: "rake spec"
56+
appraisal: "ar-8-0"
57+
exec_cmd: "rake spec:orm:active_record"
5858
gemfile: "Appraisal.root"
5959
rubygems: latest
6060
bundler: latest

.github/workflows/truffle.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,24 @@ jobs:
3838
# NOTE: truffleruby does not support upgrading rubygems.
3939
# truffleruby-22.3 (targets Ruby 3.0 compatibility)
4040
- ruby: "truffleruby-22.3"
41-
appraisal: "ruby-3-0"
42-
exec_cmd: "rake spec"
41+
appraisal: "ar-7-1"
42+
exec_cmd: "rake spec:orm:active_record"
4343
gemfile: "Appraisal.root"
4444
rubygems: default
4545
bundler: default
4646

4747
# truffleruby-23.0 (targets Ruby 3.1 compatibility)
4848
- ruby: "truffleruby-23.0"
49-
appraisal: "ruby-3-1"
50-
exec_cmd: "rake spec"
49+
appraisal: "ar-7-2"
50+
exec_cmd: "rake spec:orm:active_record"
5151
gemfile: "Appraisal.root"
5252
rubygems: default
5353
bundler: default
5454

5555
# truffleruby-23.1 (targets Ruby 3.2 compatibility)
5656
- ruby: "truffleruby-23.1"
57-
appraisal: "ruby-3-2"
58-
exec_cmd: "rake spec"
57+
appraisal: "ar-8-0"
58+
exec_cmd: "rake spec:orm:active_record"
5959
gemfile: "Appraisal.root"
6060
rubygems: default
6161
bundler: default

.github/workflows/unsupported.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838
include:
3939
# Ruby 2.6
4040
- ruby: "ruby-2.6"
41-
appraisal: "ruby-2-6"
42-
exec_cmd: "rake spec"
41+
appraisal: "ar-6-1"
42+
exec_cmd: "rake spec:orm:active_record"
4343
gemfile: "Appraisal.root"
4444
rubygems: '3.4.22'
4545
bundler: '2.4.22'
4646

4747
# Ruby 2.7
4848
- ruby: "ruby-2.7"
49-
appraisal: "ruby-2-7"
50-
exec_cmd: "rake spec"
49+
appraisal: "ar-7-1"
50+
exec_cmd: "rake spec:orm:active_record"
5151
gemfile: "Appraisal.root"
5252
rubygems: '3.4.22'
5353
bundler: '2.4.22'

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ basic construct for user management and then gets out of the way.
3737

3838
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
3939
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
40-
| Works with JRuby | [![JRuby 9.1 Compat][💎jruby-9.1i]][🚎10-j-wf] [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎10-j-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎10-j-wf] [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎10-j-wf] [![JRuby 10.0 Compat][💎jruby-c-i]][🚎11-c-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf] |
40+
| Works with JRuby | [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎10-j-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎10-j-wf] [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎10-j-wf] [![JRuby 10.0 Compat][💎jruby-c-i]][🚎11-c-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf] |
4141
| Works with Truffle Ruby | [![Truffle Ruby 22.3 Compat][💎truby-22.3i]][🚎9-t-wf] [![Truffle Ruby 23.0 Compat][💎truby-23.0i]][🚎9-t-wf] [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎9-t-wf] [![Truffle Ruby 24.1 Compat][💎truby-c-i]][🚎11-c-wf] [![Truffle Ruby HEAD Compat][💎truby-headi]][🚎3-hd-wf] |
4242
| Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎4-lg-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎6-s-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎6-s-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎6-s-wf] [![Ruby 3.4 Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf] |
4343
| Works with MRI Ruby 2 | [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎1-an-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎1-an-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎7-us-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎7-us-wf] |
@@ -548,7 +548,6 @@ or one of the others at the head of this README.
548548
[💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
549549
[💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
550550
[💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
551-
[💎jruby-9.1i]: https://img.shields.io/badge/JRuby-9.1-FBE742?style=for-the-badge&logo=ruby&logoColor=red
552551
[💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
553552
[💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
554553
[💎jruby-9.4i]: https://img.shields.io/badge/JRuby-9.4-FBE742?style=for-the-badge&logo=ruby&logoColor=red

0 commit comments

Comments
 (0)