Skip to content

Commit

Permalink
Exclude older versions unsupported by setup-ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 6, 2024
1 parent c7193c2 commit 5e75a1e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ name: test
on: [push, pull_request]

jobs:
ruby-versions:
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.4

build:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: [ 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, head ]
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
exclude:
- { os: macos-latest, ruby: 2.4 }
- { os: macos-latest, ruby: 2.5 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 5e75a1e

Please sign in to comment.