diff --git a/.github/actions/test-report/action.yml b/.github/actions/test-report/action.yml index 4be28dfc..a617c09d 100644 --- a/.github/actions/test-report/action.yml +++ b/.github/actions/test-report/action.yml @@ -9,13 +9,13 @@ runs: using: 'composite' steps: - name: Archive artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: ${{ inputs.report_name }} - path: reports + path: /app/reports/ - name: Publish Test Report - uses: mikepenz/action-junit-report@v3 + uses: mikepenz/action-junit-report@v4 if: always() with: report_paths: '/app/reports/report.xml' diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index c02f234f..a0286245 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -75,13 +75,13 @@ jobs: echo "==> No Postman API test collection is found. Skip the test." fi - name: Upload core API test report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: core-test-report path: /app/report/tide.collection.report.html - name: Upload custom API test report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: custom-test-report diff --git a/.github/workflows/build_unit-test.yml b/.github/workflows/build_unit-test.yml index 5689955b..2ee420c3 100644 --- a/.github/workflows/build_unit-test.yml +++ b/.github/workflows/build_unit-test.yml @@ -52,7 +52,7 @@ jobs: run: tar -czf build-artifacts.tar.gz .nuxt - name: Archive build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-artifacts path: build-artifacts.tar.gz @@ -71,7 +71,7 @@ jobs: uses: actions/checkout@v2 - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-artifacts @@ -99,7 +99,7 @@ jobs: JEST_JUNIT_OUTPUT_DIR: test-results/unit/ - name: Upload test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-results path: test-results \ No newline at end of file diff --git a/.github/workflows/notify_slack.yml b/.github/workflows/notify_slack.yml index 19af1d25..1217aadc 100644 --- a/.github/workflows/notify_slack.yml +++ b/.github/workflows/notify_slack.yml @@ -52,7 +52,7 @@ jobs: with: JOB_ID: ${{ inputs.workflow_id }} REUSABLE_WORKFLOW_NAME: ${{ inputs.workflow_reusable_name }} - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ${{ inputs.artifact_name }} - name: prepare-report @@ -83,7 +83,7 @@ jobs: echo "REPORT_TEXT=:crying_cat_face: No report found. Testing may have been skipped." >> $GITHUB_ENV fi - name: sdp-test-report-success - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.26.0 if: env.WORKFLOW_CONCLUSION == 'success' env: REPO_NAME: ${{ github.repository }} @@ -126,7 +126,7 @@ jobs: ] } - name: sdp-test-report-fail - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.26.0 if: env.WORKFLOW_CONCLUSION != 'success' with: channel-id: ${{ inputs.slack_channel }} diff --git a/.github/workflows/run_e2e_be.yml b/.github/workflows/run_e2e_be.yml index 8746534e..afe776d7 100644 --- a/.github/workflows/run_e2e_be.yml +++ b/.github/workflows/run_e2e_be.yml @@ -112,9 +112,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Get repo name - id: repo_name - run: echo "::set-output name=REPO_NAME::$(echo ${GITHUB_REPOSITORY#*/})" - name: Check browsers run: | @@ -151,13 +148,6 @@ jobs: uses: dpc-sdp/github-actions/.github/actions/test-report@main with: report_name: 'test-reports-${{ inputs.name }}' - - - name: Upload test results - uses: actions/upload-artifact@v3 - if: always() - with: - name: test-results - path: /app/reports/ - name: 'Add failed test result status to CMS' if: inputs.test_status && failure() @@ -170,13 +160,6 @@ jobs: run: | cd /app TEST_STATUS=pass node -r ts-node/register -r tsconfig-paths/register scripts/addTestResult.ts - - - name: Store Cucumber Cloud test report URL - uses: actions/upload-artifact@v3 - if: always() - with: - name: ${{ inputs.name }}-report-url - path: /app/reports/report-url.txt notify_slack: uses: ./.github/workflows/notify_slack.yml if: | @@ -196,7 +179,7 @@ jobs: workflow_reusable_name: "run_e2e_be" test_type: ${{ inputs.test_type }} test_subtype: ${{ inputs.test_subtype }} - artifact_name: "${{ inputs.name }}-report-url" + artifact_name: "test-reports-${{ inputs.name }}" be_url: ${{ inputs.be_url }} project: ${{ inputs.project }} slack_channel: ${{ inputs.slack_channel }} diff --git a/.github/workflows/run_e2e_fe.yml b/.github/workflows/run_e2e_fe.yml index 54af2239..476822b5 100644 --- a/.github/workflows/run_e2e_fe.yml +++ b/.github/workflows/run_e2e_fe.yml @@ -118,9 +118,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Get repo name - id: repo_name - run: echo "::set-output name=REPO_NAME::$(echo ${GITHUB_REPOSITORY#*/})" - name: Check browsers run: | @@ -162,13 +159,6 @@ jobs: uses: dpc-sdp/github-actions/.github/actions/test-report@main with: report_name: 'test-reports-${{ inputs.name }}' - - - name: Store Cucumber Cloud test report URL - uses: actions/upload-artifact@v3 - if: always() - with: - name: ${{ inputs.name }}-report-url - path: /app/reports/report-url.txt notify_slack: uses: ./.github/workflows/notify_slack.yml if: | @@ -188,7 +178,7 @@ jobs: workflow_reusable_name: "run_e2e_fe" test_type: ${{ inputs.test_type }} test_subtype: ${{ inputs.test_subtype }} - artifact_name: "${{ inputs.name }}-report-url" + artifact_name: "test-reports-${{ inputs.name }}" fe_url: ${{ inputs.fe_url }} be_url: ${{ inputs.be_url }} project: ${{ inputs.project }} diff --git a/.github/workflows/tf_diffscheck.yml b/.github/workflows/tf_diffscheck.yml index 8b0a533d..d4e9314c 100644 --- a/.github/workflows/tf_diffscheck.yml +++ b/.github/workflows/tf_diffscheck.yml @@ -56,7 +56,7 @@ jobs: - name: Send Slack notification id: notify_slack - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.26.0 if: steps.plan.outputs.exitcode == 2 env: REPO_NAME: ${{ github.repository }} diff --git a/.github/workflows/tide_build.yml b/.github/workflows/tide_build.yml index 407b6dc0..4238a267 100644 --- a/.github/workflows/tide_build.yml +++ b/.github/workflows/tide_build.yml @@ -57,7 +57,7 @@ jobs: run: | /app/.circleci/test-artifacts.sh - name: Upload test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: behat-results