1212 - clarin-v7
1313 - customer/*
1414 pull_request :
15+ workflow_dispatch :
1516
1617permissions :
1718 contents : read # to fetch code (actions/checkout)
@@ -56,20 +57,11 @@ jobs:
5657
5758 # https://github.com/actions/setup-java
5859 - name : Install JDK ${{ matrix.java }}
59- uses : actions/setup-java@v3
60+ uses : actions/setup-java@v4
6061 with :
6162 java-version : ${{ matrix.java }}
6263 distribution : ' temurin'
63-
64- # https://github.com/actions/cache
65- - name : Cache Maven dependencies
66- uses : actions/cache@v3
67- with :
68- # Cache entire ~/.m2/repository
69- path : ~/.m2/repository
70- # Cache key is hash of all pom.xml files. Therefore any changes to POMs will invalidate cache
71- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
72- restore-keys : ${{ runner.os }}-maven-
64+ cache : ' maven'
7365
7466 # Run parallel Maven builds based on the above 'strategy.matrix'
7567 - name : Run Maven ${{ matrix.type }}
@@ -94,31 +86,35 @@ jobs:
9486 path : ' dspace/target/site/jacoco-aggregate/jacoco.xml'
9587 retention-days : 14
9688
97- # # Codecov upload is a separate job in order to allow us to restart this separate from the entire build/test
98- # # job above. This is necessary because Codecov uploads seem to randomly fail at times.
99- # # See https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
100- # codecov:
101- # # Must run after 'tests' job above
102- # needs: tests
103- # runs-on: ubuntu-latest
104- # steps:
105- # - name: Checkout
106- # uses: actions/checkout@v3
107-
108- # # Download artifacts from previous 'tests' job
109- # - name: Download coverage artifacts
110- # uses: actions/download-artifact@v3
111-
112- # # Now attempt upload to Codecov using its action.
113- # # NOTE: We use a retry action to retry the Codecov upload if it fails the first time.
114- # #
115- # # Retry action: https://github.com/marketplace/actions/retry-action
116- # # Codecov action: https://github.com/codecov/codecov-action
117- # - name: Upload coverage to Codecov.io
118- # uses: Wandalen/wretry.action@v1.0.36
119- # with:
120- # action: codecov/codecov-action@v3
121- # # Try upload 5 times max
122- # attempt_limit: 5
123- # # Run again in 30 seconds
124- # attempt_delay: 30000
89+ # # Codecov upload is a separate job in order to allow us to restart this separate from the entire build/test
90+ # # job above. This is necessary because Codecov uploads seem to randomly fail at times.
91+ # # See https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
92+ # codecov:
93+ # # Must run after 'tests' job above
94+ # needs: tests
95+ # runs-on: ubuntu-latest
96+ # steps:
97+ # - name: Checkout
98+ # uses: actions/checkout@v4
99+ #
100+ # # Download artifacts from previous 'tests' job
101+ # - name: Download coverage artifacts
102+ # uses: actions/download-artifact@v4
103+ #
104+ # # Now attempt upload to Codecov using its action.
105+ # # NOTE: We use a retry action to retry the Codecov upload if it fails the first time.
106+ # #
107+ # # Retry action: https://github.com/marketplace/actions/retry-action
108+ # # Codecov action: https://github.com/codecov/codecov-action
109+ # - name: Upload coverage to Codecov.io
110+ # uses: Wandalen/wretry.action@v1.3.0
111+ # with:
112+ # action: codecov/codecov-action@v4
113+ # # Ensure codecov-action throws an error when it fails to upload
114+ # with: |
115+ # fail_ci_if_error: true
116+ # token: ${{ secrets.CODECOV_TOKEN }}
117+ # # Try re-running action 5 times max
118+ # attempt_limit: 5
119+ # # Run again in 30 seconds
120+ # attempt_delay: 30000
0 commit comments