@@ -18,7 +18,7 @@ concurrency:
18
18
jobs :
19
19
rubocop :
20
20
name : Rubocop
21
- runs-on : ' ubuntu-20.04 '
21
+ runs-on : ' ubuntu-latest '
22
22
steps :
23
23
- uses : actions/checkout@v4
24
24
- uses : ruby/setup-ruby@v1
30
30
31
31
test :
32
32
name : ' Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}'
33
- runs-on : ubuntu-20.04
33
+ runs-on : ' ubuntu-latest '
34
34
strategy :
35
35
fail-fast : false
36
36
matrix :
@@ -213,7 +213,7 @@ jobs:
213
213
214
214
legacy :
215
215
name : Legacy Ruby Builds (${{ matrix.container.version }})
216
- runs-on : ubuntu-20.04
216
+ runs-on : ' ubuntu-latest '
217
217
container :
218
218
image : ${{ matrix.container.tag }}
219
219
options : ${{ matrix.container.options || '--add-host github-complains-if-this-is-empty.com:127.0.0.1' }}
@@ -225,7 +225,6 @@ jobs:
225
225
- container :
226
226
version : " 2.1.9"
227
227
tag : ghcr.io/rspec/docker-ci:2.1.9
228
- post : git config --global --add safe.directory `pwd`
229
228
env :
230
229
RAILS_VERSION : ' ~> 4.2.0'
231
230
- container :
@@ -240,14 +239,16 @@ jobs:
240
239
RAILS_VERSION : ' ~> 4.2.0'
241
240
242
241
env :
243
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
244
242
LEGACY_CI : true
245
243
JRUBY_OPTS : ${{ matrix.container.jruby_opts || '--dev' }}
246
244
RAILS_VERSION : ${{ matrix.env.RAILS_VERSION }}
247
245
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
249
252
- run : apt-get install libsqlite3-dev
250
- - run : ${{ matrix.container.pre }}
251
253
- run : script/legacy_setup.sh
252
- - run : ${{ matrix.container.post }}
253
254
- run : script/run_build
0 commit comments