From 460f64951c8978baf936d5795b9aa4d8614c226d Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Thu, 12 Mar 2026 16:33:50 +0900 Subject: [PATCH] CI: Introduce ruby_versions.yml to add supported Ruby versions automatically Signed-off-by: Shizuo Fujita --- .github/workflows/unit-test.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index d400931..51847cf 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -4,21 +4,24 @@ on: 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.experimental }} + continue-on-error: ${{ matrix.ruby == 'head' }} strategy: fail-fast: false matrix: - ruby: [ '3.4', '3.3', '3.2', '3.1', '3.0', '2.7' ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} os: - windows-latest - experimental: [false] - include: - - ruby: 'head' - os: windows-latest - experimental: true name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} steps: - uses: actions/checkout@v6 @@ -29,7 +32,6 @@ jobs: run: | ruby --version gem --version - gem install bundler rake ridk exec bundle install --jobs 4 --retry 3 - name: Unit Test run: |