Skip to content

Commit

Permalink
Merge pull request #20 from ruby/ci-using-shared-versions-gh-action
Browse files Browse the repository at this point in the history
CI: use shared Ruby versions GH action
  • Loading branch information
st0012 authored Jan 26, 2024
2 parents d06f7b1 + 021ea3c commit dc71573
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,22 @@ on:
- master

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

build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
needs: ruby-versions
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- head
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit dc71573

Please sign in to comment.