summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-08 12:07:50 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-08 12:07:50 +0900
commitc75b63937ffa4a8f5751c9a2717f0a287377d818 (patch)
treee2f98b9b6f8cc9b2db8ef25746b651f3f5f8383e
parente5e5bbc4f81903782654a1c890b33f9b87a0e1ea (diff)
downloadjson-c75b63937ffa4a8f5751c9a2717f0a287377d818.tar.gz
Switch to use ruby_versions callable workflow
-rw-r--r--.github/workflows/ci.yml18
1 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 68fb1ac..70c488b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,7 +5,13 @@ on:
- pull_request
jobs:
+ ruby-versions:
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
+ with:
+ min_version: 2.3
+
host:
+ needs: ruby-versions
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
@@ -17,17 +23,13 @@ jobs:
- macos-11
- macos-12
- windows-latest
- ruby:
- - '3.0'
- - 2.7
- - 2.6
- - 2.5
- - 2.4
- - 2.3
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
include:
- { os: ubuntu-latest , ruby: jruby-9.1 } # Ruby 2.3
- { os: ubuntu-latest , ruby: jruby-9.2 } # Ruby 2.5
- - { os: ubuntu-latest , ruby: truffleruby }
+ exclude:
+ - { os: windows-latest, ruby: truffleruby }
+ - { os: windows-latest, ruby: truffleruby-head }
steps:
- uses: actions/checkout@v2