diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index fb81e8fb..24c811cf 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,4 +1,4 @@ -name: ubuntu +name: test concurrency: group: "${{github.workflow}}-${{github.ref}}" cancel-in-progress: true @@ -17,24 +17,26 @@ on: - cron: "0 8 * * 3" # At 08:00 on Wednesday # https://crontab.guru/#0_8_*_*_3 jobs: - build: - runs-on: ubuntu-latest + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + min_version: 2.5 + test: + needs: ruby-versions + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - ruby: - - "2.5" - - "2.6" - - "2.7" - - "3.0" - - "3.1" - - "3.2" - - "head" - - "jruby-9.2.21.0" - - "jruby-9.3.9.0" - - "jruby-head" - - "truffleruby-22.3.0" - - "truffleruby-head" + ruby: ${{fromJson(needs.ruby-versions.outputs.versions)}} + os: [ubuntu-latest, macos-latest, windows-latest] + exclude: + - {os: windows-latest, ruby: truffleruby-head} + - {os: windows-latest, ruby: truffleruby} + - {os: windows-latest, ruby: jruby-head} + - {os: windows-latest, ruby: jruby } + - {os: macos-latest, ruby: truffleruby } + - {os: macos-latest, ruby: truffleruby-head } + - {os: macos-latest, ruby: jruby } steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1