From 8156cf5cbdf68c04c4d44e3ad819b6503ef17b08 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Thu, 11 Jun 2026 10:24:02 +0900 Subject: [PATCH] ci: use ruby-versions to keep up-to-date * ubuntu-latest: 3.2, 3.3, 3.4, 4.0 * macos-latest: 3.2, 3.3, 3.4, 4.0 * widows-latest: 3.2, 3.3, 3.4, 4.0 * widows-11-arm: 3.4, 4.0 Signed-off-by: Kentaro Hayashi --- .github/workflows/test.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 169b4daca9..126e0682a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,15 +20,22 @@ concurrency: permissions: read-all jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 3.2 test: + needs: ruby-versions runs-on: ${{ matrix.os }} continue-on-error: false strategy: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest', 'windows-11-arm'] - ruby-version: ['4.0', '3.4', '3.3', '3.2'] + ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }} exclude: + - ruby-version: head - os: 'windows-11-arm' ruby-version: '3.3' - os: 'windows-11-arm' @@ -51,11 +58,14 @@ jobs: run: bundle exec rake test TESTOPTS="-v --report-slow-tests --no-show-detail-immediately" test-windows-service: + needs: ruby-versions runs-on: windows-latest strategy: fail-fast: false matrix: - ruby-version: ['4.0', '3.4', '3.3', '3.2'] + ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + exclude: + - ruby-version: head name: Windows service (Ruby ${{ matrix.ruby-version }}) steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2