Skip to content

Commit

Permalink
Use reusing workflow for Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-nakamura145 committed Jan 6, 2024
1 parent 482e37e commit 72c020a
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: ubuntu
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.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 72c020a

Please sign in to comment.