Skip to content

Commit 2d60263

Browse files
m-nakamura145ko1
authored andcommitted
Use ruby/actions workflow for ruby versions
1 parent 315ecaf commit 2d60263

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

.github/workflows/protocol.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
15+
versions: '["debug"]'
1116

17+
test:
18+
needs: ruby-versions
1219
runs-on: ubuntu-latest
1320
timeout-minutes: 10
1421
strategy:
1522
fail-fast: false
1623
matrix:
17-
ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.3", "head", "debug"]
24+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1825

1926
steps:
2027
- uses: actions/checkout@v4

.github/workflows/ruby-macos.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 3.2
1115

16+
test:
17+
needs: ruby-versions
1218
runs-on: macos-latest
1319
timeout-minutes: 15
1420
strategy:
1521
fail-fast: false
1622
matrix:
17-
ruby-version: ["3.2", "3.3", "head"]
23+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1824

1925
steps:
2026
- uses: actions/checkout@v4

.github/workflows/ruby.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
15+
versions: '["debug"]'
1116

17+
test:
18+
needs: ruby-versions
1219
runs-on: ubuntu-latest
1320
timeout-minutes: 30
1421
strategy:
1522
fail-fast: false
1623
matrix:
17-
ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.3", "head", "debug"]
24+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1825

1926
steps:
2027
- uses: actions/checkout@v4

.github/workflows/test_test.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 3.0
15+
versions: '["debug"]'
1116

17+
test:
18+
needs: ruby-versions
1219
runs-on: ubuntu-latest
1320
timeout-minutes: 30
1421
strategy:
1522
fail-fast: false
1623
matrix:
17-
ruby-version: ["3.0", "3.1", "3.2", "3.3", "head", "debug"]
24+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1825

1926
steps:
2027
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)