@@ -4,16 +4,9 @@ on: [push, pull_request]
44
55jobs :
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 "::set-output name=value::${versions}"
7+ uses : ruby/actions/.github/workflows/ruby_versions.yml@master
8+ with :
9+ min_version : 2.5
1710 test :
1811 needs : ruby-versions
1912 name : build (${{ matrix.ruby }} / ${{ matrix.os }})
@@ -23,15 +16,20 @@ jobs:
2316 ruby : ${{ fromJson(needs.ruby-versions.outputs.versions) }}
2417 os : [ ubuntu-latest, macos-latest, windows-latest ]
2518 exclude :
19+ - { os: macos-latest, ruby: 2.5 }
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 }
25+ - { os: windows-latest, ruby: truffleruby }
26+ - { os: windows-latest, ruby: truffleruby-head }
2927 include :
3028 - { os: windows-latest, ruby: mingw }
3129 - { os: windows-latest, ruby: mswin }
3230 runs-on : ${{ matrix.os }}
3331 steps :
34- - uses : actions/checkout@v3
32+ - uses : actions/checkout@v4
3533 - name : Set up Ruby
3634 uses : ruby/setup-ruby@v1
3735 with :
4139 - name : Build
4240 run : rake compile
4341 - name : Run test
44- run : rake test
42+ run : bundle exec rake test
0 commit comments