@@ -18,7 +18,7 @@ concurrency:
1818jobs :
1919 rubocop :
2020 name : Rubocop
21- runs-on : ' ubuntu-20.04 '
21+ runs-on : ' ubuntu-latest '
2222 steps :
2323 - uses : actions/checkout@v4
2424 - uses : ruby/setup-ruby@v1
3030
3131 test :
3232 name : ' Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}'
33- runs-on : ubuntu-20.04
33+ runs-on : ' ubuntu-latest '
3434 strategy :
3535 fail-fast : false
3636 matrix :
@@ -213,7 +213,7 @@ jobs:
213213
214214 legacy :
215215 name : Legacy Ruby Builds (${{ matrix.container.version }})
216- runs-on : ubuntu-20.04
216+ runs-on : ' ubuntu-latest '
217217 container :
218218 image : ${{ matrix.container.tag }}
219219 options : ${{ matrix.container.options || '--add-host github-complains-if-this-is-empty.com:127.0.0.1' }}
@@ -225,7 +225,6 @@ jobs:
225225 - container :
226226 version : " 2.1.9"
227227 tag : ghcr.io/rspec/docker-ci:2.1.9
228- post : git config --global --add safe.directory `pwd`
229228 env :
230229 RAILS_VERSION : ' ~> 4.2.0'
231230 - container :
@@ -240,14 +239,16 @@ jobs:
240239 RAILS_VERSION : ' ~> 4.2.0'
241240
242241 env :
243- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
244242 LEGACY_CI : true
245243 JRUBY_OPTS : ${{ matrix.container.jruby_opts || '--dev' }}
246244 RAILS_VERSION : ${{ matrix.env.RAILS_VERSION }}
247245 steps :
248- - uses : actions/checkout@v3
246+ - run : git config --global --add safe.directory $GITHUB_WORKSPACE
247+ - run : git init $GITHUB_WORKSPACE
248+ - run : git remote add origin https://github.com/rspec/rspec-activemodel-mocks
249+ - run : git config --local gc.auto 0
250+ - run : git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +$GITHUB_SHA:$GITHUB_REF
251+ - run : git checkout --progress --force $GITHUB_REF
249252 - run : apt-get install libsqlite3-dev
250- - run : ${{ matrix.container.pre }}
251253 - run : script/legacy_setup.sh
252- - run : ${{ matrix.container.post }}
253254 - run : script/run_build
0 commit comments