@@ -186,6 +186,8 @@ jobs:
186
186
github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha &&
187
187
format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }}
188
188
- uses : ./.github/actions/setup
189
+ with :
190
+ cache : restore
189
191
- name : Maven Package
190
192
run : |
191
193
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
@@ -198,10 +200,6 @@ jobs:
198
200
# The main Error Prone run
199
201
$MAVEN ${MAVEN_TEST} -T 1C clean verify -DskipTests -P gib,errorprone-compiler \
200
202
-pl '!:trino-docs,!:trino-server,!:trino-server-rpm'
201
- - name : Clean local Maven repo
202
- # Avoid creating a cache entry because this job doesn't download all dependencies
203
- if : steps.cache.outputs.cache-hit != 'true'
204
- run : rm -rf ~/.m2/repository
205
203
206
204
web-ui-checks :
207
205
runs-on : ubuntu-latest
@@ -231,6 +229,8 @@ jobs:
231
229
github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha &&
232
230
format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }}
233
231
- uses : ./.github/actions/setup
232
+ with :
233
+ cache : restore
234
234
- name : Maven Install
235
235
run : |
236
236
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
@@ -275,10 +275,6 @@ jobs:
275
275
path : |
276
276
**/*.hprof
277
277
retention-days : ${{ env.HEAP_DUMP_RETENTION_DAYS }}
278
- - name : Clean local Maven repo
279
- # Avoid creating a cache entry because this job doesn't download all dependencies
280
- if : steps.cache.outputs.cache-hit != 'true'
281
- run : rm -rf ~/.m2/repository
282
278
283
279
hive-tests :
284
280
runs-on : ubuntu-latest
@@ -300,6 +296,8 @@ jobs:
300
296
github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha &&
301
297
format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }}
302
298
- uses : ./.github/actions/setup
299
+ with :
300
+ cache : restore
303
301
- name : Install Hive Module
304
302
run : |
305
303
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
@@ -426,10 +424,6 @@ jobs:
426
424
check_name : ${{ github.job }} (${{ matrix.config }}) with secrets
427
425
conclusion : ${{ job.status }}
428
426
github_token : ${{ secrets.GITHUB_TOKEN }}
429
- - name : Clean local Maven repo
430
- # Avoid creating a cache entry because this job doesn't download all dependencies
431
- if : steps.cache.outputs.cache-hit != 'true'
432
- run : rm -rf ~/.m2/repository
433
427
434
428
test-other-modules :
435
429
runs-on : ubuntu-latest
@@ -445,6 +439,8 @@ jobs:
445
439
github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha &&
446
440
format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }}
447
441
- uses : ./.github/actions/setup
442
+ with :
443
+ cache : restore
448
444
- name : Maven Install
449
445
run : |
450
446
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
@@ -516,10 +512,6 @@ jobs:
516
512
path : |
517
513
**/*.hprof
518
514
retention-days : ${{ env.HEAP_DUMP_RETENTION_DAYS }}
519
- - name : Clean local Maven repo
520
- # Avoid creating a cache entry because this job doesn't download all dependencies
521
- if : steps.cache.outputs.cache-hit != 'true'
522
- run : rm -rf ~/.m2/repository
523
515
524
516
build-test-matrix :
525
517
runs-on : ubuntu-latest
@@ -534,6 +526,8 @@ jobs:
534
526
github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha &&
535
527
format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }}
536
528
- uses : ./.github/actions/setup
529
+ with :
530
+ cache : restore
537
531
- name : Update PR check
538
532
uses : ./.github/actions/update-check
539
533
if : >-
@@ -603,10 +597,6 @@ jobs:
603
597
./.github/bin/build-matrix-from-impacted.py -v -i gib-impacted.log -m .github/test-matrix.yaml -o matrix.json
604
598
echo "Matrix: $(jq '.' matrix.json)"
605
599
echo "matrix=$(jq -c '.' matrix.json)" >> $GITHUB_OUTPUT
606
- - name : Clean local Maven repo
607
- # Avoid creating a cache entry because this job doesn't download all dependencies
608
- if : steps.cache.outputs.cache-hit != 'true'
609
- run : rm -rf ~/.m2/repository
610
600
611
601
test :
612
602
runs-on : ubuntu-latest
@@ -628,6 +618,7 @@ jobs:
628
618
format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }}
629
619
- uses : ./.github/actions/setup
630
620
with :
621
+ cache : restore
631
622
java-version : ${{ matrix.jdk != '' && matrix.jdk || '17' }}
632
623
- name : Cleanup node
633
624
# This is required as a virtual environment update 20210219.1 left too little space for MemSQL to work
@@ -816,10 +807,6 @@ jobs:
816
807
check_name : ${{ github.job }} with secrets
817
808
conclusion : ${{ job.status }}
818
809
github_token : ${{ secrets.GITHUB_TOKEN }}
819
- - name : Clean local Maven repo
820
- # Avoid creating a cache entry because this job doesn't download all dependencies
821
- if : steps.cache.outputs.cache-hit != 'true'
822
- run : rm -rf ~/.m2/repository
823
810
824
811
build-pt :
825
812
runs-on : ubuntu-latest
@@ -835,6 +822,8 @@ jobs:
835
822
github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha &&
836
823
format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }}
837
824
- uses : ./.github/actions/setup
825
+ with :
826
+ cache : restore
838
827
- uses : dorny/paths-filter@v2
839
828
id : filter
840
829
with :
@@ -1053,10 +1042,6 @@ jobs:
1053
1042
run : |
1054
1043
echo "Matrix: $(jq '.' matrix.json)"
1055
1044
echo "matrix=$(cat matrix.json)" >> $GITHUB_OUTPUT
1056
- - name : Clean local Maven repo
1057
- # Avoid creating a cache entry because this job doesn't download all dependencies
1058
- if : steps.cache.outputs.cache-hit != 'true'
1059
- run : rm -rf ~/.m2/repository
1060
1045
1061
1046
pt :
1062
1047
runs-on : ubuntu-latest
0 commit comments