From 03d1418523c4dcdd88c1a0b7272989b02b9e7374 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 5 Jan 2024 11:07:18 +0900 Subject: [PATCH 1/2] Use reusing workflow for Ruby versions --- .github/workflows/test.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5bf3a654..3f3ec705 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,14 @@ on: - push - pull_request jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby-jruby + min_version: 2.5 + inplace: + needs: ruby-versions name: "Inplace: ${{ matrix.ruby-version }} on ${{ matrix.runs-on }}" runs-on: ${{ matrix.runs-on }} strategy: @@ -13,15 +20,7 @@ jobs: - ubuntu-latest - macos-latest - windows-latest - ruby-version: - - "2.5" - - "2.6" - - "2.7" - - "3.0" - - "3.1" - - "3.2" - - "3.3" - - jruby + ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }} # include: # - runs-on: ubuntu-latest # ruby-version: truffleruby From 9866ad3a9ce66f41fa686ab6b628ae489e9e05dd Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 5 Jan 2024 11:16:09 +0900 Subject: [PATCH 2/2] Fix syntax --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f3ec705..94a116a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - ubuntu-latest - macos-latest - windows-latest - ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }} # include: # - runs-on: ubuntu-latest # ruby-version: truffleruby