diff --git a/.github/workflows/test_results.yml b/.github/workflows/test_results.yml index 46aab4f7..1714a3c7 100644 --- a/.github/workflows/test_results.yml +++ b/.github/workflows/test_results.yml @@ -35,40 +35,40 @@ jobs: which node node --version - - name: 'Check Artifact' - id: CheckArtifact - uses: actions/github-script@v7 - with: - script: | - var allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{ github.event.workflow_run.id }}, - }); - - var artifacts = allArtifacts.data.artifacts.filter((artifact) => { - return artifact.name == "test-results"; - }); - - if (artifacts.length > 0) { - core.setOutput('testResultsArtifactAvailable', 'true'); - console.log('Test results artifact found.'); - } +# - name: 'Check Artifact' +# id: CheckArtifact +# uses: actions/github-script@v7 +# with: +# script: | +# var allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ +# owner: context.repo.owner, +# repo: context.repo.repo, +# run_id: ${{ github.event.workflow_run.id }}, +# }); +# +# var artifacts = allArtifacts.data.artifacts.filter((artifact) => { +# return artifact.name == "test-results"; +# }); +# +# if (artifacts.length > 0) { +# core.setOutput('testResultsArtifactAvailable', 'true'); +# console.log('Test results artifact found.'); +# } # The dorny/test-reporter@v1 action doesn't support actions/upload-artifact@v4 yet. # We therefore download the artifact manually and feed it to dorny/test-reporter@v1 as local files. - - name: 'Download Artifact' - id: DownloadArtifact - if: steps.CheckArtifact.outputs.testResultsArtifactAvailable == 'true' - uses: actions/download-artifact@v4 - continue-on-error: true - with: - # name: test-results - path: test-results - merge-multiple: true - # run-id: ${{ github.event.workflow_run.id }} +# - name: 'Download Artifact' +# id: DownloadArtifact +# if: steps.CheckArtifact.outputs.testResultsArtifactAvailable == 'true' +# uses: actions/download-artifact@v4 +# continue-on-error: true +# with: +# # name: test-results +# path: test-results +# merge-multiple: true +# # run-id: ${{ github.event.workflow_run.id }} - name: 'Download Test Results' id: DownloadTestResults - if: steps.DownloadArtifact.outcome == 'failure' +# if: steps.DownloadArtifact.outcome == 'failure' uses: actions/github-script@v7 with: script: | @@ -100,13 +100,13 @@ jobs: } - name: 'Extract Artifact' id: ExtractArtifact - if: steps.DownloadTestResults.conclusion == 'success' && steps.DownloadTestResults.outputs.hasTestResultsArtifact == 'true' + if: steps.DownloadTestResults.outputs.hasTestResultsArtifact == 'true' shell: pwsh run: | Expand-Archive test-results.zip -DestinationPath './test-results' -Force dir -Recurse | Select-Object -ExpandProperty FullName - name: 'Publish Test Report' - if: steps.DownloadArtifact.outcome == 'success' || steps.ExtractArtifact.conclusion == 'success' + if: steps.ExtractArtifact.conclusion == 'success' uses: dorny/test-reporter@v1 env: #