From 8d218b5697b551841c8fa7eddcbb212391a6798c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 15 Feb 2023 17:08:44 +0900 Subject: [PATCH] Try to use ruby/ruby/.github/workflows/ruby_versions.yml@master --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8bef56e02..c7e42edad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,12 +6,20 @@ permissions: # added using https://github.com/step-security/secure-workflows contents: read jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + min_version: 2.2 + engine: cruby-jruby + versions: '["truffleruby"]' + test: + needs: ruby-versions runs-on: ${{ matrix.os }} strategy: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] - ruby: [ 3.2, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} exclude: - os: windows-latest ruby: truffleruby