diff --git a/.github/workflows/run-api-analytics-tests.yml b/.github/workflows/run-api-analytics-tests.yml index f31c0cbc9cf9..08e0501cbe1c 100644 --- a/.github/workflows/run-api-analytics-tests.yml +++ b/.github/workflows/run-api-analytics-tests.yml @@ -75,7 +75,7 @@ jobs: cd dhis-2/dhis-test-e2e docker-compose logs web > ~/logs.txt - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: failure() with: name: "tomcat_logs" diff --git a/.github/workflows/run-api-tests.yml b/.github/workflows/run-api-tests.yml index e56e860f45b6..179165b77795 100644 --- a/.github/workflows/run-api-tests.yml +++ b/.github/workflows/run-api-tests.yml @@ -66,7 +66,7 @@ jobs: cd dhis-2/dhis-test-e2e docker compose logs web > ~/logs.txt - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: failure() with: name: "tomcat_logs" diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7d0a47409beb..b1d2a1f21045 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -34,7 +34,7 @@ jobs: # delete the next 2 steps once we are confident in the coverage setup - name: Tar jacoco coverage report to debug run: tar -cvf coverage.tar dhis-2/dhis-test-coverage/target/site/jacoco-aggregate - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload jacoco coverage report to debug with: name: unit-test-coverage @@ -50,7 +50,7 @@ jobs: - name: Tar surefire individual reports run: find . -name "surefire-reports" -type d -exec find {} -type f -name "*.xml" -printf '%p\0' \; | tar --null --files-from=- -cvf surefire_reports.tar - name: Archive surefire reports - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: unit-test-surefire-reports path: | @@ -71,7 +71,7 @@ jobs: - name: Run integration tests run: mvn clean verify --threads 2C --batch-mode --no-transfer-progress -Pintegration -f ./dhis-2/pom.xml -pl -dhis-web-embedded-jetty timeout-minutes: 30 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload test logs on failure if: failure() with: @@ -89,7 +89,7 @@ jobs: # delete the next 2 steps once we are confident in the coverage setup - name: Tar jacoco coverage report to debug run: tar -cvf coverage.tar dhis-2/dhis-test-coverage/target/site/jacoco-aggregate - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload jacoco coverage report to debug with: name: integration-test-coverage @@ -101,7 +101,7 @@ jobs: - name: Tar surefire individual reports run: find . -name "surefire-reports" -type d -exec find {} -type f -name "*.xml" -printf '%p\0' \; | tar --null --files-from=- -cvf surefire_reports.tar - name: Archive surefire reports - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-surefire-reports path: | @@ -122,7 +122,7 @@ jobs: - name: Run integration h2 tests run: mvn clean verify --threads 2C --batch-mode --no-transfer-progress -PintegrationH2 -f ./dhis-2/pom.xml -pl -dhis-web-embedded-jetty timeout-minutes: 30 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload test logs on failure if: failure() with: @@ -140,7 +140,7 @@ jobs: # delete the next 2 steps once we are confident in the coverage setup - name: Tar jacoco coverage report to debug run: tar -cvf coverage.tar dhis-2/dhis-test-coverage/target/site/jacoco-aggregate - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload jacoco coverage report to debug with: name: integration-h2-test-coverage @@ -152,7 +152,7 @@ jobs: - name: Tar surefire individual reports run: find . -name "surefire-reports" -type d -exec find {} -type f -name "*.xml" -printf '%p\0' \; | tar --null --files-from=- -cvf surefire_reports.tar - name: Archive surefire reports - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-h2-test-surefire-reports path: |