From 3f4400f3b38991cfb0f6d887584de0739332d434 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Fri, 26 Dec 2025 00:18:53 +0900 Subject: [PATCH] Add Ruby 4.0 to CI Ruby 4.0.0 has been released, so this PR adds Ruby 4.0 to CI. https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/ To prevent the CI label from showing "CI / Test Ruby 4" instead of "CI / Test Ruby 4.0", the matrix entries are changed from floats to strings. --- .github/workflows/ci.yml | 9 +++++---- .github/workflows/release.yml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc252cc5..317f5a80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,11 @@ jobs: strategy: matrix: entry: - - { ruby: 3.2, allowed-failure: false } - - { ruby: 3.3, allowed-failure: false } - - { ruby: 3.4, allowed-failure: false } - - { ruby: head, allowed-failure: true } + - { ruby: '3.2', allowed-failure: false } + - { ruby: '3.3', allowed-failure: false } + - { ruby: '3.4', allowed-failure: false } + - { ruby: '4.0', allowed-failure: false } + - { ruby: 'head', allowed-failure: true } name: Test Ruby ${{ matrix.entry.ruby }} steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba0116b1..32e79577 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: uses: ruby/setup-ruby@v1 with: bundler-cache: true - ruby-version: 3.4 + ruby-version: 4.0 - uses: rubygems/release-gem@v1 publish_gh_pages: