make results file unique

This commit is contained in:
Liam DeBeasi
2023-05-19 14:41:55 -04:00
parent 61e3e34f89
commit 071b8edcd0
2 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,7 @@ runs:
shell: bash shell: bash
working-directory: ./core/test-reporter working-directory: ./core/test-reporter
- name: Generate Report - name: Generate Report
run: node dist/index.js "../../report.json" run: node dist/index.js "../../results-*.json"
env: env:
GITHUB_TOKEN: ${{ inputs.token }} GITHUB_TOKEN: ${{ inputs.token }}
REPO: ${{ inputs.repo }} REPO: ${{ inputs.repo }}

View File

@ -77,6 +77,11 @@ runs:
name: test-results-${{ inputs.shard }}-${{ inputs.totalShards }} name: test-results-${{ inputs.shard }}-${{ inputs.totalShards }}
output: core/TestResults-${{ inputs.shard }}-${{ inputs.totalShards }}.zip output: core/TestResults-${{ inputs.shard }}-${{ inputs.totalShards }}.zip
paths: core/playwright-report 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 - name: Archive Report
if: always() if: always()
uses: ./.github/workflows/actions/upload-archive uses: ./.github/workflows/actions/upload-archive