Skip to content

Commit 5a4b4ba

Browse files
authored
Merge pull request #55 from rspec/update-ubuntu-runner
Update ubuntu runner
2 parents 2c6ef81 + 3581e4c commit 5a4b4ba

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818
jobs:
1919
test:
2020
name: 'Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}'
21-
runs-on: ubuntu-20.04
21+
runs-on: 'ubuntu-latest'
2222
strategy:
2323
fail-fast: false
2424
matrix:
@@ -42,7 +42,7 @@ jobs:
4242

4343
legacy:
4444
name: Legacy Ruby Builds (${{ matrix.container.version }})
45-
runs-on: ubuntu-20.04
45+
runs-on: 'ubuntu-latest'
4646
container:
4747
image: ${{ matrix.container.tag }}
4848
options: ${{ matrix.container.options || '--add-host github-complains-if-this-is-empty.com:127.0.0.1' }}
@@ -63,7 +63,11 @@ jobs:
6363
env:
6464
LEGACY_CI: true
6565
steps:
66-
- uses: actions/checkout@v3
66+
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
67+
- run: git init $GITHUB_WORKSPACE
68+
- run: git remote add origin https://github.com/rspec/rspec-collection_matchers
69+
- run: git config --local gc.auto 0
70+
- run: git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +$GITHUB_SHA:$GITHUB_REF
71+
- run: git checkout --progress --force $GITHUB_REF
6772
- run: script/legacy_setup.sh
68-
- run: ${{ matrix.container.post }}
6973
- run: script/run_build

0 commit comments

Comments
 (0)