Skip to content

Commit 84408ae

Browse files
committed
πŸ”€ Re-absorb 1.1-stable
Squashed commit of the following: commit 5086ef7 Author: Peter Boling <[email protected]> Date: Thu Mar 21 15:33:16 2024 -0600 πŸ”’οΈ Checksums for v1.1.4 commit 9618702 Author: Peter Boling <[email protected]> Date: Thu Mar 21 15:32:47 2024 -0600 🚨 Linting commit 02a2479 Author: Peter Boling <[email protected]> Date: Thu Mar 21 15:23:05 2024 -0600 πŸ”¨ checksums script commit b57f742 Author: Peter Boling <[email protected]> Date: Thu Mar 21 15:08:16 2024 -0600 πŸ” Cert - pboling expires SEP-2024 commit 5567289 Author: Peter Boling <[email protected]> Date: Thu Mar 21 15:06:40 2024 -0600 πŸ“ Documentation of $EPOCHSECONDS commit 51d7004 Author: Peter Boling <[email protected]> Date: Thu Mar 21 15:01:10 2024 -0600 πŸ”– Prepare release v1.0.4 commit 8e00481 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:50:37 2024 -0600 πŸ’š Do not run rubocop except on style workflow commit 9bcd984 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:49:44 2024 -0600 πŸ’š Try to avoid old bundler issue commit 18c8125 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:43:36 2024 -0600 πŸ’š Try to prevent rubygems update commit 294adf7 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:41:11 2024 -0600 πŸ“ Badges commit b5fe0e6 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:37:42 2024 -0600 πŸ”§ Turn off truffleruby commit a141155 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:36:48 2024 -0600 πŸ”§ Turn off truffleruby-head commit 304520e Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:34:15 2024 -0600 πŸ”§ Define legacy vs. unsupported rubies commit fc512e0 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:28:38 2024 -0600 πŸ”§ Run GH workflows on stable branch commit 268bdc7 Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:27:10 2024 -0600 ♻️ Refactor CI Config commit c9e2d4c Author: Peter Boling <[email protected]> Date: Thu Mar 21 14:19:07 2024 -0600 πŸ“ CHANGELOG.md for v1.1.4 commit 59ffae4 Merge: b98b87d f0ea61a Author: Peter Boling <[email protected]> Date: Thu Mar 21 20:03:32 2024 +0000 Merge branch 'drop_exec_bit' into '1.1-stable' Remove the executable bit from non-executable files See merge request oauth-xx/version_gem!2 commit f0ea61a Author: Jason Frey <[email protected]> Date: Thu Feb 22 11:20:57 2024 -0500 Remove the executable bit from non-executable files commit b98b87d Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:45:24 2023 +0700 ✏️ Fix typo commit 5f8b314 Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:36:40 2023 +0700 πŸ”’οΈ Checksums for v1.1.3 commit 5bfc069 Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:35:12 2023 +0700 πŸ”– Prepare release v1.1.3 commit 0e522e2 Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:33:18 2023 +0700 πŸ“ CHANGELOG.md commit d79e917 Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:26:18 2023 +0700 πŸ”¨ allow rake tasks to load when some dev gems are missing commit d44b973 Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:21:56 2023 +0700 πŸ’š Tweak workflows commit f0ab083 Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:12:06 2023 +0700 πŸ’š Tweak workflows commit 98bc046 Author: Peter Boling <[email protected]> Date: Mon Jun 5 17:03:17 2023 +0700 πŸ’š Tweak rubygems & bundler settings commit 01208da Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:57:40 2023 +0700 🎨 Improved gem structure commit e29df65 Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:52:20 2023 +0700 🏷️ RBS types commit 3dbee26 Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:52:02 2023 +0700 ✏️ Remove path from Gemfile commit 6b4c3a6 Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:51:14 2023 +0700 🚨 Rely soley on rubocop-lts for linting commit 0a4f9ef Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:50:28 2023 +0700 🎨 Gemfile contexts commit d10297b Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:50:07 2023 +0700 🚨 Lint binstubs commit 055a308 Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:49:35 2023 +0700 πŸ“ Better yard docs commit 2412117 Author: Peter Boling <[email protected]> Date: Mon Jun 5 16:48:32 2023 +0700 πŸ”₯ rubocop-todo is dead, long live rubocop-gradual commit 971309d Author: Peter Boling <[email protected]> Date: Wed May 31 03:34:26 2023 +0700 πŸ“ Document classes Signed-off-by: Peter Boling <[email protected]>
1 parent cf54882 commit 84408ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+885
-647
lines changed
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Code Coverage
1+
name: Ruby - Coverage
22

33
env:
4-
CI_CODECOV: true
5-
COVER_ALL: true
4+
K_SOUP_COV_MIN_BRANCH: 82
5+
K_SOUP_COV_MIN_LINE: 94
6+
K_SOUP_COV_MIN_HARD: true
67

78
on:
89
push:
910
branches:
1011
- 'main'
11-
- '*-maintenance'
12-
- '*-dev'
1312
- '*-stable'
13+
- '*-dev'
1414
tags:
1515
- '!*' # Do not execute on tags
1616
pull_request:
@@ -19,92 +19,92 @@ on:
1919
# Allow manually triggering the workflow.
2020
workflow_dispatch:
2121

22+
permissions:
23+
contents: read
24+
2225
# Cancels all previous workflow runs for the same branch that have not yet completed.
2326
concurrency:
2427
# The concurrency group contains the workflow name and the branch name.
25-
group: ${{ github.workflow }}-${{ github.ref }}
28+
group: "${{ github.workflow }}-${{ github.ref }}"
2629
cancel-in-progress: true
2730

2831
jobs:
2932
test:
3033
name: Specs with Coverage - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
3134
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
35+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
36+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
37+
CI_CODECOV: true
38+
COVER_ALL: true
39+
runs-on: ubuntu-latest
40+
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3241
strategy:
33-
fail-fast: false
3442
matrix:
35-
experimental: [false]
43+
rubygems:
44+
- latest
45+
bundler:
46+
- latest
47+
gemfile:
48+
- coverage
3649
ruby:
37-
- "2.7"
50+
- '3.1'
3851

39-
runs-on: ubuntu-latest
40-
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
4152
steps:
42-
- uses: amancevice/setup-code-climate@v0
43-
name: CodeClimate Install
44-
if: matrix.ruby == '2.7' && github.event_name != 'pull_request' && always()
53+
- name: CodeClimate Install
54+
uses: amancevice/setup-code-climate@v1
55+
if: ${{ github.event_name != 'pull_request' }}
4556
with:
46-
cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}
57+
cc_test_reporter_id: "${{ secrets.CC_TEST_REPORTER_ID }}"
4758

4859
- name: Checkout
49-
uses: actions/checkout@v3
60+
uses: actions/checkout@v4
5061

5162
- name: Setup Ruby & Bundle
5263
uses: ruby/setup-ruby@v1
5364
with:
54-
ruby-version: ${{ matrix.ruby }}
55-
rubygems: ${{ matrix.rubygems }}
56-
bundler: ${{ matrix.bundler }}
65+
ruby-version: "${{ matrix.ruby }}"
66+
rubygems: "${{ matrix.rubygems }}"
67+
bundler: "${{ matrix.bundler }}"
5768
bundler-cache: true
5869

5970
- name: CodeClimate Pre-build Notification
6071
run: cc-test-reporter before-build
61-
if: matrix.ruby == '2.7' && github.event_name != 'pull_request' && always()
72+
if: ${{ github.event_name != 'pull_request' }}
6273
continue-on-error: ${{ matrix.experimental != 'false' }}
6374

6475
- name: Run tests
6576
run: bundle exec rake test
6677

6778
- name: CodeClimate Post-build Notification
6879
run: cc-test-reporter after-build
69-
if: matrix.ruby == '2.7' && github.event_name != 'pull_request' && always()
80+
if: ${{ github.event_name != 'pull_request' }}
7081
continue-on-error: ${{ matrix.experimental != 'false' }}
7182

7283
- name: Code Coverage Summary Report
73-
uses: irongut/[email protected]
84+
uses: irongut/[email protected]
85+
if: ${{ github.event_name == 'pull_request' }}
7486
with:
7587
filename: ./coverage/coverage.xml
7688
badge: true
7789
fail_below_min: true
7890
format: markdown
79-
hide_branch_rate: true
91+
hide_branch_rate: false
8092
hide_complexity: true
8193
indicators: true
8294
output: both
83-
thresholds: '100 100'
95+
thresholds: '93 82'
8496
continue-on-error: ${{ matrix.experimental != 'false' }}
8597

8698
- name: Add Coverage PR Comment
8799
uses: marocchino/sticky-pull-request-comment@v2
88-
if: matrix.ruby == '2.7' && always()
100+
if: ${{ github.event_name == 'pull_request' }}
89101
with:
90102
recreate: true
91103
path: code-coverage-results.md
92104
continue-on-error: ${{ matrix.experimental != 'false' }}
93105

94106
- name: Coveralls
95107
uses: coverallsapp/github-action@master
96-
if: matrix.ruby == '2.7' && github.event_name != 'pull_request' && always()
97108
with:
98-
github-token: ${{ secrets.GITHUB_TOKEN }}
109+
github-token: "${{ secrets.GITHUB_TOKEN }}"
99110
continue-on-error: ${{ matrix.experimental != 'false' }}
100-
101-
# Using the codecov gem instead.
102-
# - name: CodeCov
103-
# uses: codecov/codecov-action@v2
104-
# if: matrix.ruby == '2.7' && github.event_name != 'pull_request' && always()
105-
# with:
106-
# files: ./coverage/coverage.xml
107-
# flags: unittests
108-
# name: codecov-upload
109-
# fail_ci_if_error: true
110-
# continue-on-error: ${{ matrix.experimental != 'false' }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4+
#
5+
# Source repository: https://github.com/actions/dependency-review-action
6+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
name: 'Dependency Review'
8+
on: [pull_request]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
dependency-review:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 'Checkout Repository'
18+
uses: actions/checkout@v4
19+
- name: 'Dependency Review'
20+
uses: actions/dependency-review-action@v2

β€Ž.github/workflows/heads.ymlβ€Ž

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
name: Ruby HEAD Support
1+
name: Ruby Heads Matrix
2+
3+
env:
4+
K_SOUP_COV_DO: false
25

36
on:
47
push:
58
branches:
69
- 'main'
7-
- '*-dev'
810
- '*-stable'
11+
- '*-dev'
912
tags:
1013
- '!*' # Do not execute on tags
1114
pull_request:
@@ -14,35 +17,48 @@ on:
1417
# Allow manually triggering the workflow.
1518
workflow_dispatch:
1619

20+
permissions:
21+
contents: read
22+
1723
# Cancels all previous workflow runs for the same branch that have not yet completed.
1824
concurrency:
1925
# The concurrency group contains the workflow name and the branch name.
20-
group: ${{ github.workflow }}-${{ github.ref }}
26+
group: "${{ github.workflow }}-${{ github.ref }}"
2127
cancel-in-progress: true
2228

2329
jobs:
2430
test:
25-
name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
31+
name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
2632
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
33+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
34+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
35+
runs-on: ubuntu-latest
36+
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
2737
strategy:
28-
fail-fast: false
38+
fail-fast: true
2939
matrix:
30-
experimental: [true]
40+
rubygems:
41+
- latest
42+
bundler:
43+
- latest
44+
gemfile:
45+
- vanilla
3146
ruby:
32-
# rubocop supports JRuby, but I can't get it to work on jruby-head (and the problem might be in JRuby!)
3347
- "ruby-head"
48+
# TODO: Use rspec-pending_for to exempt (and document) truffleruby-head from specific tests that are failing
49+
# - truffleruby-head
3450

35-
runs-on: ubuntu-latest
36-
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3751
steps:
3852
- name: Checkout
39-
uses: actions/checkout@v3
53+
uses: actions/checkout@v4
54+
4055
- name: Setup Ruby & Bundle
4156
uses: ruby/setup-ruby@v1
4257
with:
43-
ruby-version: ${{ matrix.ruby }}
44-
rubygems: ${{ matrix.rubygems }}
45-
bundler: ${{ matrix.bundler }}
58+
ruby-version: "${{ matrix.ruby }}"
59+
rubygems: "${{ matrix.rubygems }}"
60+
bundler: "${{ matrix.bundler }}"
4661
bundler-cache: true
62+
4763
- name: Run tests
4864
run: bundle exec rake test

β€Ž.github/workflows/legacy.ymlβ€Ž

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ on:
44
push:
55
branches:
66
- 'main'
7-
- '*-maintenance'
8-
- '*-dev'
97
- '*-stable'
8+
- '*-dev'
109
tags:
1110
- '!*' # Do not execute on tags
1211
pull_request:
@@ -25,6 +24,8 @@ jobs:
2524
test:
2625
name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
2726
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
27+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
28+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
2829
strategy:
2930
fail-fast: false
3031
matrix:
@@ -33,7 +34,11 @@ jobs:
3334
- "2.7.11"
3435
bundler:
3536
- none
37+
gemfile:
38+
- vanilla
3639
ruby:
40+
- "3.0"
41+
- "2.7"
3742
- "2.6"
3843
- "2.5"
3944
- "2.4"

β€Ž.github/workflows/style.ymlβ€Ž

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
name: Code Style Checks
1+
# RuboCop Gradual isn't able to parse something in this repo.
2+
# Not sure what exactly, and reported here:
3+
# https://github.com/skryukov/rubocop-gradual/issues/12
4+
# As a result this workflow must allow failure.
5+
name: Ruby - Style
26

37
on:
48
push:
59
branches:
610
- 'main'
7-
- '*-maintenance'
8-
- '*-dev'
911
- '*-stable'
12+
- '*-dev'
1013
tags:
1114
- '!*' # Do not execute on tags
1215
pull_request:
@@ -15,24 +18,32 @@ on:
1518

1619
jobs:
1720
rubocop:
18-
name: Rubocop
19-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
21+
name: RuboCop
2022
strategy:
2123
fail-fast: false
2224
matrix:
23-
experimental: [false]
25+
experimental: [true]
26+
rubygems:
27+
- latest
28+
bundler:
29+
- latest
30+
gemfile:
31+
- style
2432
ruby:
25-
- "2.3"
26-
runs-on: ubuntu-20.04
33+
- "3.2"
34+
runs-on: ubuntu-latest
35+
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
36+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
37+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
2738
steps:
2839
- name: Checkout
29-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
3041
- name: Setup Ruby & Bundle
3142
uses: ruby/setup-ruby@v1
3243
with:
3344
ruby-version: ${{ matrix.ruby }}
3445
rubygems: ${{ matrix.rubygems }}
3546
bundler: ${{ matrix.bundler }}
3647
bundler-cache: true
37-
- name: Run Rubocop
38-
run: bundle exec rubocop -DES
48+
- name: Run RuboCop
49+
run: bundle exec rake rubocop_gradual:check

0 commit comments

Comments
Β (0)