Skip to content

Commit

Permalink
Use the latest Ubuntu and Windows for the majority of tests.
Browse files Browse the repository at this point in the history
- Test all Ruby versions (including head) on the latest Ubuntu and
  Windows.
- Test all OS versions on the latest Ruby.

Use the legacy version of setup-ruby where needed.
  • Loading branch information
philr committed Oct 16, 2024
1 parent 83bf487 commit 2e1ed80
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,36 @@ jobs:
name: ${{ matrix.ruby }} on ${{ matrix.os }}${{ matrix.name_suffix }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019]
os: [ubuntu-24.04, windows-2022]
ruby: ['2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', jruby-9.1, jruby-9.2, jruby-9.3, jruby-9.4]
name_suffix: ['']
experimental: [false]
include:
- os: ubuntu-20.04
ruby: '3.3'
name_suffix: ''
experimental: false
- os: ubuntu-22.04
ruby: '3.3'
name_suffix: ''
experimental: false
- os: ubuntu-20.04
ruby: head
name_suffix: ' (experimental)'
experimental: true
- os: ubuntu-20.04
- os: windows-2019
ruby: '3.3'
name_suffix: ''
experimental: false
- os: ubuntu-24.04
ruby: jruby-head
name_suffix: ' (experimental)'
experimental: true
- os: ubuntu-22.04
- os: ubuntu-24.04
ruby: head
name_suffix: ' (experimental)'
experimental: true
- os: windows-2019
- os: windows-2022
ruby: head
name_suffix: ' (experimental)'
experimental: true
- os: windows-2019
- os: windows-2022
ruby: jruby-head
name_suffix: ' (experimental)'
experimental: true
Expand All @@ -41,7 +45,13 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- if: ((startsWith(matrix.ruby, 'jruby-9.1') || startsWith(matrix.ruby, 'jruby-9.2')) && startsWith(matrix.os, 'ubuntu-')
uses: philr/setup-ruby@legacy-v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- if: ${{ !(((startsWith(matrix.ruby, 'jruby-9.1') || startsWith(matrix.ruby, 'jruby-9.2')) && startsWith(matrix.os, 'ubuntu-')) }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
Expand Down

0 comments on commit 2e1ed80

Please sign in to comment.