From d91f64ebe82376eb1cc6a3437044c7700f4ca4dd Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Sat, 15 Feb 2025 22:55:52 +0000 Subject: [PATCH 1/2] Update ubuntu runner --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41b0062..1c67786 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ concurrency: jobs: test: name: 'Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}' - runs-on: ubuntu-20.04 + runs-on: 'ubuntu-latest' strategy: fail-fast: false matrix: @@ -42,7 +42,7 @@ jobs: legacy: name: Legacy Ruby Builds (${{ matrix.container.version }}) - runs-on: ubuntu-20.04 + runs-on: 'ubuntu-latest' container: image: ${{ matrix.container.tag }} options: ${{ matrix.container.options || '--add-host github-complains-if-this-is-empty.com:127.0.0.1' }} From 3581e4cfad84a8dd5f03c010b71e65d0f45df793 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Sat, 15 Feb 2025 23:34:28 +0000 Subject: [PATCH 2/2] Fix legacy git --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c67786..9daffbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,11 @@ jobs: env: LEGACY_CI: true steps: - - uses: actions/checkout@v3 + - run: git config --global --add safe.directory $GITHUB_WORKSPACE + - run: git init $GITHUB_WORKSPACE + - run: git remote add origin https://github.com/rspec/rspec-collection_matchers + - run: git config --local gc.auto 0 + - run: git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +$GITHUB_SHA:$GITHUB_REF + - run: git checkout --progress --force $GITHUB_REF - run: script/legacy_setup.sh - - run: ${{ matrix.container.post }} - run: script/run_build