From 1483af4f362eb6ef81509335fa71d63f4ad58d17 Mon Sep 17 00:00:00 2001 From: Josef Strzibny Date: Mon, 16 Nov 2026 14:53:07 +0100 Subject: [PATCH] Fix CI on Ubuntu 26.04 runners ubuntu-latest now runs Ubuntu 26.04. The ruby/setup-ruby commit pinned since 2022 downloads Ruby from the old toolcache release, which has no Ubuntu 26.04 builds, so the Set up Ruby step failed with HTTP 404. Current setup-ruby also has no Ruby 3.1.0 build for Ubuntu 26.04. - Update ruby/setup-ruby to v1.338.0, still pinned to a commit. - Update actions/checkout to v7, which runs on Node 24 instead of the deprecated Node 20. - Test Ruby 3.4 and 4.0, the series in normal maintenance, instead of 3.1, which reached end of life in March 2025. Co-authored-by: Claude Opus 5.5 (xhigh effort) --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baa45d9..aa2fee5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,15 +9,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.1.0'] # test only recommend Ruby version (and stable version on the gitaction server) - # ideally test with those versions, but gitaction are limited - # 2.7.4 is broken. - # 4.0.0 is not supported yet - # ruby-version: ['2.7.4','3.1.0','4.0.0'] + # Ruby series in normal maintenance. Tests call the live SerpApi API, + # so each added version uses more search credits. + ruby-version: ['3.4', '4.0'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Ruby ${{ matrix.ruby-version }} - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 + uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0 with: ruby-version: ${{ matrix.ruby-version }} - name: Install dependencies