From 97bfc8ba76187d3bd7155ba51b025f85186f9800 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Thu, 12 Mar 2026 12:13:33 +0900 Subject: [PATCH] CI: Introduce ruby_versions.yml to add supported Ruby versions automatically Signed-off-by: Shizuo Fujita --- .github/workflows/linux.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 22bf672..4c15155 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -4,14 +4,23 @@ 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 }} strategy: fail-fast: false matrix: - ruby: [ '4.0', '3.4', '3.3', '3.2', '3.1', '3.0', '2.7' ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + exclude: + - ruby: head postgres: [ '16', '15', '14', '13', '12' ] os: - ubuntu-latest