Skip to content

CI: Introduce ruby_versions.yml to add supported Ruby versions automatically #89

CI: Introduce ruby_versions.yml to add supported Ruby versions automatically

CI: Introduce ruby_versions.yml to add supported Ruby versions automatically #89

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 0 1 * *'
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.7
test:
needs: ruby-versions
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.ruby == 'head' }}
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os:
- windows-latest
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install
run: |
ruby --version
gem --version
ridk exec bundle install --jobs 4 --retry 3
- name: Unit Test
run: |
bundle exec rake test