Skip to content

Commit cfa1568

Browse files
Use ruby/actions workflow for ruby versions (#49)
this PR has been changed to use the [ruby/actions](https://github.com/ruby/actions/blob/master/.github/workflows/ruby_versions.yml) workflow for ruby versions.
1 parent 4448d5f commit cfa1568

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ on:
33
- push
44
- pull_request
55
jobs:
6+
ruby-versions:
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
engine: cruby-jruby
10+
min_version: 2.5
11+
612
inplace:
13+
needs: ruby-versions
714
name: ${{ matrix.ruby-version }} on ${{ matrix.runs-on }}
815
runs-on: ${{ matrix.runs-on }}
916
strategy:
@@ -13,14 +20,7 @@ jobs:
1320
- ubuntu-latest
1421
- macos-latest
1522
- windows-latest
16-
ruby-version:
17-
- "2.5"
18-
- "2.6"
19-
- "2.7"
20-
- "3.0"
21-
- "3.1"
22-
- "3.2"
23-
- jruby
23+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
2424
# include:
2525
# - runs-on: ubuntu-latest
2626
# ruby-version: truffleruby

0 commit comments

Comments
 (0)