Skip to content

Commit c23b9b9

Browse files
committed
Use ruby/actions/.github/workflows/ruby_versions.yml@master
1 parent 826ba31 commit c23b9b9

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@ on: [push, pull_request]
44

55
jobs:
66
ruby-versions:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: false
10-
outputs:
11-
versions: ${{ steps.versions.outputs.value }}
12-
steps:
13-
- id: versions
14-
run: |
15-
versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/cruby.json' | jq -c '. + ["2.5", "jruby"]')
16-
echo "value=${versions}" >> $GITHUB_OUTPUT
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
engine: cruby-jruby
10+
min_version: 2.5
1711
test:
1812
needs: ruby-versions
1913
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
@@ -26,6 +20,8 @@ jobs:
2620
- { os: windows-latest, ruby: head }
2721
- { os: macos-latest, ruby: jruby }
2822
- { os: windows-latest, ruby: jruby }
23+
- { os: macos-latest, ruby: jruby-head }
24+
- { os: windows-latest, ruby: jruby-head }
2925
include:
3026
- { os: windows-latest, ruby: mingw }
3127
- { os: windows-latest, ruby: mswin }

0 commit comments

Comments
 (0)