From 071b8edcd018967feae48898c723a8dc99d9edb2 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 19 May 2023 14:41:55 -0400 Subject: [PATCH] make results file unique --- .github/workflows/actions/generate-test-report/action.yml | 2 +- .github/workflows/actions/test-core-screenshot/action.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions/generate-test-report/action.yml b/.github/workflows/actions/generate-test-report/action.yml index 921d13644a..8e492a09df 100644 --- a/.github/workflows/actions/generate-test-report/action.yml +++ b/.github/workflows/actions/generate-test-report/action.yml @@ -34,7 +34,7 @@ runs: shell: bash working-directory: ./core/test-reporter - name: Generate Report - run: node dist/index.js "../../report.json" + run: node dist/index.js "../../results-*.json" env: GITHUB_TOKEN: ${{ inputs.token }} REPO: ${{ inputs.repo }} diff --git a/.github/workflows/actions/test-core-screenshot/action.yml b/.github/workflows/actions/test-core-screenshot/action.yml index aa778b2486..27b5a3f924 100644 --- a/.github/workflows/actions/test-core-screenshot/action.yml +++ b/.github/workflows/actions/test-core-screenshot/action.yml @@ -77,6 +77,11 @@ runs: name: test-results-${{ inputs.shard }}-${{ inputs.totalShards }} output: core/TestResults-${{ inputs.shard }}-${{ inputs.totalShards }}.zip paths: core/playwright-report + - name: Make Report Unique + if: always() + run: mv results.json results-${{ inputs.shard }}-${{ inputs.totalShards }}.json + shell: bash + working-directory: ./core - name: Archive Report if: always() uses: ./.github/workflows/actions/upload-archive