forked from 4Science/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in task/main-cris/DSC-1848 (pull request DSpace#2714)
Task/main cris/DSC-1848 Approved-by: Giuseppe Digilio
- Loading branch information
Showing
1,057 changed files
with
10,721 additions
and
8,956 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
# NOTE: Unit Tests include a retry for occasionally failing tests | ||
# - surefire.rerunFailingTestsCount => try again for flakey tests, and keep track of/report on number of retries | ||
- type: "Unit Tests" | ||
java: 11 | ||
java: 17 | ||
mvnflags: "-Dtest.argLine=-Xmx2048m -DskipUnitTests=false -Dsurefire.rerunFailingTestsCount=2" | ||
resultsdir: "**/target/surefire-reports/**" | ||
# NOTE: ITs skip all code validation checks, as they are already done by Unit Test job. | ||
|
@@ -34,7 +34,7 @@ jobs: | |
# - xml.skip => Skip all XML/XSLT validation by xml-maven-plugin | ||
# - failsafe.rerunFailingTestsCount => try again for flakey tests, and keep track of/report on number of retries | ||
- type: "Integration Tests" | ||
java: 11 | ||
java: 17 | ||
mvnflags: "-DskipIntegrationTests=false -Denforcer.skip=true -Dcheckstyle.skip=true -Dlicense.skip=true -Dxml.skip=true -Dfailsafe.rerunFailingTestsCount=2" | ||
resultsdir: "**/target/failsafe-reports/**" | ||
# Do NOT exit immediately if one matrix job fails | ||
|
@@ -49,7 +49,7 @@ jobs: | |
|
||
# https://github.com/actions/setup-java | ||
- name: Install JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
|
@@ -74,14 +74,14 @@ jobs: | |
# (This artifact is downloadable at the bottom of any job's summary page) | ||
- name: Upload Results of ${{ matrix.type }} to Artifact | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.type }} results | ||
path: ${{ matrix.resultsdir }} | ||
|
||
# Upload code coverage report to artifact, so that it can be shared with the 'codecov' job (see below) | ||
- name: Upload code coverage report to Artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.type }} coverage report | ||
path: 'dspace/target/site/jacoco-aggregate/jacoco.xml' | ||
|
@@ -100,7 +100,7 @@ jobs: | |
|
||
# Download artifacts from previous 'tests' job | ||
- name: Download coverage artifacts | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
|
||
# Now attempt upload to Codecov using its action. | ||
# NOTE: We use a retry action to retry the Codecov upload if it fails the first time. | ||
|
@@ -110,10 +110,11 @@ jobs: | |
- name: Upload coverage to Codecov.io | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
action: codecov/codecov-action@v4 | ||
# Ensure codecov-action throws an error when it fails to upload | ||
with: | | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
# Try re-running action 5 times max | ||
attempt_limit: 5 | ||
# Run again in 30 seconds | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.