Skip to content

Commit

Permalink
Update ruby versions to test
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Aug 14, 2023
1 parent e5854b4 commit 6c2bc4b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ name: ci
on: [push, pull_request]

jobs:
ruby-versions:
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.6

test:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
ruby: [ 'head', '3.1', '3.0', '2.7', '2.6' ]
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu, macos, windows ]
include:
- ruby: 'jruby-9.3'
Expand All @@ -16,11 +25,6 @@ jobs:
outputs:
gem: ${{steps.build.outputs.gem}}
steps:
- name: git config
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global advice.detachedHead 0
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 6c2bc4b

Please sign in to comment.