From 05dea6f79a6f017bc51a391058d6d2e372b41f17 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Fri, 13 Mar 2026 11:20:07 +0900 Subject: [PATCH] CI: Introduce ruby_versions.yml to add supported Ruby versions automatically Signed-off-by: Shizuo Fujita --- .github/workflows/linux.yml | 12 +++++++++++- .github/workflows/windows.yml | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index bd53c25..6a00c78 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -4,13 +4,23 @@ on: branches: - master pull_request: + schedule: + - cron: '0 0 1 * *' jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 3.2 build: + needs: ruby-versions runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - ruby: [ '3.2', '3.3', '3.4' ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + exclude: + - ruby: head os: - ubuntu-latest name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5a1b64f..3372544 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -4,13 +4,23 @@ on: branches: - master pull_request: + schedule: + - cron: '0 0 1 * *' jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 3.2 build: + needs: ruby-versions runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - ruby: [ '3.2', '3.3', '3.4' ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + exclude: + - ruby: head os: - windows-latest name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}