Skip to content

Commit

Permalink
Merge pull request #79 from m-nakamura145/update-ci-matrix
Browse files Browse the repository at this point in the history
Use reusing workflow for Ruby versions
  • Loading branch information
tmtm authored Jan 7, 2024
2 parents 5eb6ec2 + d694335 commit e179f5b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ name: test
on: [push, pull_request]

jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.6

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

0 comments on commit e179f5b

Please sign in to comment.