Skip to content

Commit

Permalink
Merge pull request #475 from ruby/reusing-workflow
Browse files Browse the repository at this point in the history
Try to use ruby/ruby/.github/workflows/ruby_versions.yml@master
  • Loading branch information
hsbt committed Feb 15, 2023
2 parents 7b6a7b1 + 8d218b5 commit c443da6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -6,12 +6,20 @@ permissions: # added using https://github.com/step-security/secure-workflows
contents: read

jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 2.2
engine: cruby-jruby
versions: '["truffleruby"]'

test:
needs: ruby-versions
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
ruby: [ 3.2, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ]
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
- os: windows-latest
ruby: truffleruby
Expand Down

0 comments on commit c443da6

Please sign in to comment.