diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b078fac..f7815f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,26 +4,22 @@ on: [push, pull_request] jobs: ruby-versions: - runs-on: ubuntu-latest - outputs: - versions: ${{ steps.versions.outputs.value }} - steps: - - id: versions - run: | - versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.5"]') - echo "value=${versions}" >> $GITHUB_OUTPUT + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + min_version: 2.5 + test: needs: ruby-versions name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} - os: [ 'ubuntu-latest' ] - include: - - { os: macos-latest, ruby: 'head' } - - { os: macos-latest, ruby: 'jruby-head' } - - { os: macos-latest, ruby: 'truffleruby-head' } - - { os: windows-latest, ruby: 'head' } + os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] + exclude: + - { os: windows-latest, ruby: 'truffleruby' } + - { os: windows-latest, ruby: 'truffleruby-head' } + - { os: windows-latest, ruby: 'jruby-head' } + - { os: windows-latest, ruby: 'jruby' } runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3