Skip to content

Commit b76957b

Browse files
committed
👷 Evergreen ruby current
1 parent 148f5fb commit b76957b

22 files changed

+111
-30
lines changed

.github/workflows/current.yml

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Targets the evergreen latest release of ruby, truffleruby, and jruby
2+
name: Current
3+
4+
env:
5+
K_SOUP_COV_DO: false
6+
7+
on:
8+
push:
9+
branches:
10+
- 'main'
11+
tags:
12+
- '!*' # Do not execute on tags
13+
pull_request:
14+
branches:
15+
- '*'
16+
# Allow manually triggering the workflow.
17+
workflow_dispatch:
18+
19+
permissions:
20+
contents: read
21+
22+
# Cancels all previous workflow runs for the same branch that have not yet completed.
23+
concurrency:
24+
# The concurrency group contains the workflow name and the branch name.
25+
group: "${{ github.workflow }}-${{ github.ref }}"
26+
cancel-in-progress: true
27+
28+
jobs:
29+
test:
30+
name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.appraisal }}${{ matrix.name_extra || '' }}
31+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
32+
runs-on: ubuntu-latest
33+
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
34+
env: # $BUNDLE_GEMFILE must be set at job level, so it is set for all steps
35+
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile
36+
strategy:
37+
matrix:
38+
include:
39+
40+
- ruby: "ruby"
41+
appraisal: "ruby-current"
42+
exec_cmd: "rake spec"
43+
gemfile: "Appraisal.root"
44+
rubygems: latest
45+
bundler: latest
46+
47+
- ruby: "truffleruby"
48+
appraisal: "ruby-current"
49+
exec_cmd: "rake spec"
50+
gemfile: "Appraisal.root"
51+
rubygems: default
52+
bundler: default
53+
54+
- ruby: "jruby"
55+
appraisal: "ruby-current"
56+
exec_cmd: "rake spec"
57+
gemfile: "Appraisal.root"
58+
rubygems: default
59+
bundler: default
60+
61+
steps:
62+
- name: Checkout
63+
uses: actions/checkout@v4
64+
65+
- name: Setup Ruby & RubyGems
66+
uses: ruby/setup-ruby@v1
67+
with:
68+
ruby-version: ${{ matrix.ruby }}
69+
rubygems: ${{ matrix.rubygems }}
70+
bundler: ${{ matrix.bundler }}
71+
bundler-cache: false
72+
73+
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
74+
# We need to do this first to get appraisal installed.
75+
# NOTE: This does not use the main Gemfile at all.
76+
- name: Bundle install for Appraisal ${{ matrix.appraisal }}
77+
run: bundle
78+
- name: Install Appraisal ${{ matrix.appraisal }} dependencies
79+
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
80+
- name: Run ${{ matrix.appraisal }} tests via ${{ matrix.exec_cmd }}
81+
run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}

.github/workflows/jruby.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
test:
2929
name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.appraisal }}${{ matrix.name_extra || '' }}
3030
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31-
runs-on: ubuntu-24.04
31+
runs-on: ubuntu-22.04
3232
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3333
env: # $BUNDLE_GEMFILE must be set at job level, so it is set for all steps
3434
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile

.github/workflows/supported.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: MRI Current
1+
name: MRI Non-EOL
22

33
env:
44
K_SOUP_COV_DO: false
@@ -59,14 +59,6 @@ jobs:
5959
rubygems: latest
6060
bundler: latest
6161

62-
# Ruby 3.4
63-
- ruby: "3.4"
64-
appraisal: "ruby-3-4"
65-
exec_cmd: "rake spec"
66-
gemfile: "Appraisal.root"
67-
rubygems: latest
68-
bundler: latest
69-
7062
steps:
7163
- name: Checkout
7264
uses: actions/checkout@v4

.github/workflows/truffle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
test:
2929
name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.appraisal }}${{ matrix.name_extra || '' }}
3030
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31-
runs-on: ubuntu-24.04
31+
runs-on: ubuntu-22.04
3232
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3333
env: # $BUNDLE_GEMFILE must be set at job level, so it is set for all steps
3434
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile

Appraisals

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ appraise "ruby-3-3" do
5252
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
5353
end
5454

55-
appraise "ruby-3-4" do
56-
gem "mutex_m", "~> 0.2"
57-
gem "stringio", "~> 3.0"
55+
appraise "ruby-current" do
56+
gem "mutex_m", ">= 0.2"
57+
gem "stringio", ">= 3.0"
5858
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
5959
end
6060

gemfiles/audit.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"
99

1010
eval_gemfile("modular/audit.gemfile")

gemfiles/coverage.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"
99

1010
eval_gemfile("modular/coverage.gemfile")

gemfiles/jruby_head.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", ">= 0.2"
66
gem "stringio", ">= 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/ruby_2_2.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
source "https://rubygems.org"
44

5-
gemspec path: "../"
5+
gemspec :path => "../"

gemfiles/ruby_2_3.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
source "https://rubygems.org"
44

5-
gemspec path: "../"
5+
gemspec :path => "../"

gemfiles/ruby_2_4.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
source "https://rubygems.org"
44

5-
gemspec path: "../"
5+
gemspec :path => "../"

gemfiles/ruby_2_5.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
source "https://rubygems.org"
44

5-
gemspec path: "../"
5+
gemspec :path => "../"

gemfiles/ruby_2_6.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/ruby_2_7.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/ruby_3_0.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/ruby_3_1.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/ruby_3_2.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/ruby_3_3.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/ruby_current.gemfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "mutex_m", ">= 0.2"
6+
gem "stringio", ">= 3.0"
7+
8+
gemspec :path => "../"

gemfiles/ruby_head.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", ">= 0.2"
66
gem "stringio", ">= 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

gemfiles/style.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ source "https://rubygems.org"
55
gem "mutex_m", "~> 0.2"
66
gem "stringio", "~> 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"
99

1010
eval_gemfile("modular/style.gemfile")

gemfiles/truffleruby_head.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ source "https://rubygems.org"
55
gem "mutex_m", ">= 0.2"
66
gem "stringio", ">= 3.0"
77

8-
gemspec path: "../"
8+
gemspec :path => "../"

0 commit comments

Comments
 (0)