Exclude < Ruby 2.5 from macos-latest #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.3 | |
test: | |
needs: ruby-versions | |
name: test (${{ matrix.ruby }} / ${{ matrix.os }}) | |
strategy: | |
matrix: | |
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
os: [ ubuntu-latest, macos-latest ] | |
exclude: | |
- ruby: 2.3 | |
os: macos-latest | |
- ruby: 2.4 | |
os: macos-latest | |
- ruby: 2.5 | |
os: macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt update -qy | |
sudo apt install libgdbm6 libgdbm-dev | |
- name: Install packages | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
brew update | |
brew install gdbm | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install dependencies | |
run: bundle install | |
- name: Run test | |
run: rake compile test |