1616 # Only run on schedule AND main branch
1717 tests-scheduled :
1818 name : Scheduled tests
19- runs-on : ubuntu-8
19+ runs-on : arbitrator-ci
2020
2121 services :
2222 redis :
2929 matrix :
3030 test-mode : [race, legacychallenge, long, challenge, l3challenge]
3131
32- if : github.event_name == 'schedule' && github.ref == 'refs/heads/master'
32+ if : github.event_name == 'workflow_dispatch' || (github.event_name == ' schedule' && github.ref == 'refs/heads/master')
3333
3434 steps :
3535 - name : Checkout
@@ -89,15 +89,15 @@ jobs:
8989 run : cargo install --force cbindgen
9090
9191 - name : Cache Build Products
92- uses : actions/cache@v3
92+ uses : actions/cache@v4
9393 with :
9494 path : |
9595 ~/.cache/go-build
9696 key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
9797 restore-keys : ${{ runner.os }}-go-
9898
9999 - name : Cache Rust Build Products
100- uses : actions/cache@v3
100+ uses : actions/cache@v4
101101 with :
102102 path : |
103103 ~/.cargo/
@@ -110,7 +110,7 @@ jobs:
110110 restore-keys : ${{ runner.os }}-cargo-${{ steps.rust-version.outputs.version }}-
111111
112112 - name : Cache cbrotli
113- uses : actions/cache@v3
113+ uses : actions/cache@v4
114114 id : cache-cbrotli
115115 with :
116116 path : |
@@ -156,7 +156,7 @@ jobs:
156156 if : matrix.test-mode == 'race'
157157 run : |
158158 echo "Running tests with Hash Scheme" >> full.log
159- ${{ github.workspace }}/.github/workflows/gotestsum.sh --race --timeout 30m --test_state_scheme hash
159+ ${{ github.workspace }}/.github/workflows/gotestsum.sh --race --timeout 90m --test_state_scheme hash
160160
161161 - name : run challenge tests
162162 if : matrix.test-mode == 'challenge'
@@ -192,7 +192,7 @@ jobs:
192192 # Only run this job if files in bold/legacy/ are modified
193193 tests-pr :
194194 name : PR modified files tests
195- runs-on : ubuntu-8
195+ runs-on : arbitrator-ci
196196 if : github.event_name == 'pull_request'
197197
198198 permissions :
@@ -203,6 +203,8 @@ jobs:
203203 uses : actions/checkout@v4
204204 with :
205205 submodules : true
206+ fetch-depth : 10 // Will cover most PRs
207+ persist-credentials : true // In case changed-files requires deeper depth
206208
207209 - name : Check changed files
208210 id : changed-files
@@ -280,7 +282,7 @@ jobs:
280282
281283 - name : Cache Build Products
282284 if : steps.changed-files.outputs.any_changed == 'true'
283- uses : actions/cache@v3
285+ uses : actions/cache@v4
284286 with :
285287 path : |
286288 ~/.cache/go-build
@@ -289,7 +291,7 @@ jobs:
289291
290292 - name : Cache Rust Build Products
291293 if : steps.changed-files.outputs.any_changed == 'true'
292- uses : actions/cache@v3
294+ uses : actions/cache@v4
293295 with :
294296 path : |
295297 ~/.cargo/
@@ -305,7 +307,7 @@ jobs:
305307
306308 - name : Cache cbrotli
307309 if : steps.changed-files.outputs.any_changed == 'true'
308- uses : actions/cache@v3
310+ uses : actions/cache@v4
309311 id : cache-cbrotli
310312 with :
311313 path : |
0 commit comments