@@ -48,17 +48,19 @@ jobs:
4848 sudo chown -R runner target
4949 if : matrix.os == 'ubuntu-20.04'
5050 - name : Upload Failed Test Report
51- uses : actions/upload-artifact@v3
51+ uses : actions/upload-artifact@v4
5252 if : failure()
5353 with :
5454 name : Failed Test Report ${{ matrix.os }}
5555 path : target/surefire-reports
56+ overwrite : true
5657 - name : Upload Coverage
57- uses : actions/upload-artifact@v3
58+ uses : actions/upload-artifact@v4
5859 if : matrix.os == 'ubuntu-20.04'
5960 with :
6061 name : Coverage Report ${{ matrix.os }}
6162 path : target/jacoco-report
63+ overwrite : true
6264 - name : Convert Jacoco unit test report to Cobertura
6365 run : python3 .github/scripts/cover2cover.py target/jacoco-report/jacoco.xml src/main/java > target/jacoco-report/cobertura.xml
6466 if : matrix.os == 'ubuntu-20.04'
@@ -70,10 +72,11 @@ jobs:
7072 mvn -ntp japicmp:cmp -DskipTests
7173 if : github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'
7274 - name : Upload Compatibility Report
73- uses : actions/upload-artifact@v3
75+ uses : actions/upload-artifact@v4
7476 with :
7577 name : Binary Compatibility Report
7678 path : target/japicmp/default-cli.html
79+ overwrite : true
7780 if : github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'
7881 - name : Build benchmark with Maven
7982 # Changes can break the benchmark, so compile it now to make sure it is buildable
9497 cp target/jacoco-report/cobertura-it.xml ./pr/jacoco-report/cobertura-it.xml
9598 if : github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'
9699 - name : Upload files
97- uses : actions/upload-artifact@v3
100+ uses : actions/upload-artifact@v4
98101 with :
99102 name : pr
100103 path : pr/
104+ overwrite : true
101105 if : github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'
0 commit comments