From 70d79bbf451fbc3439416c60137a5f390f32212a Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Sat, 11 Mar 2023 22:33:39 -0500 Subject: [PATCH] Use a centralized, automatically updated set of Ruby versions in CI --- .github/workflows/test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 233d08a..affb150 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,19 @@ on: - cron: '10 3 * * *' jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 2.6 + build: if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }} name: build (${{ matrix.ruby }} / ${{ matrix.os }}) + needs: ruby-versions strategy: matrix: - ruby: [ head, '3.1', '3.0', 2.7, 2.6 ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} os: [ ubuntu-latest, macos-latest, windows-latest ] exclude: - ruby: head