From 786fd17d136e77f06256e4f428cbfa248e8e0795 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Thu, 12 Mar 2026 16:25:14 +0900 Subject: [PATCH] CI: Introduce ruby_versions.yml to add supported Ruby versions automatically Signed-off-by: Shizuo Fujita --- .github/workflows/linux.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 732dd11..c59880c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,17 +1,26 @@ name: linux on: - - push - - pull_request + 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: 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 gemfile: