From 240f81c3ecf2a6e47faaebe762e98efd90a4aee3 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Thu, 12 Mar 2026 11:49:10 +0900 Subject: [PATCH] CI: Introduce ruby_versions.yml to add supported Ruby versions automatically Signed-off-by: Shizuo Fujita --- .github/workflows/linux.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 36c0df4..448d94a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -4,14 +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 build: + needs: ruby-versions runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} 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) }} + exclude: + - ruby: head os: - ubuntu-latest experimental: [false]