Skip to content

Commit

Permalink
Merge pull request #46 from ruby/use-reusable-workflow
Browse files Browse the repository at this point in the history
Use re-using workflow
  • Loading branch information
hsbt authored Feb 9, 2024
2 parents f839626 + efb4f22 commit 0b94068
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +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.4

test:
needs: ruby-versions
name: Test with (${{ 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]
runs-on: ${{ matrix.os }}
steps:
Expand Down

0 comments on commit 0b94068

Please sign in to comment.