Skip to content
5 changes: 5 additions & 0 deletions .changeset/wicked-llamas-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Tests reports from artifacts will be protected by password
13 changes: 11 additions & 2 deletions .github/actions/merge-pw-reports/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Merge playwright reports
description: Merge reports from all shards

inputs:
PASSWORD_FOR_DECODING_ARTIFACT:
description: "Password for decoding artifact"
required: true

runs:
using: "composite"
steps:
Expand All @@ -21,11 +26,15 @@ runs:

- name: Merge into HTML Report
shell: bash
run: npx playwright merge-reports --reporter html ./all-blob-reports
env:
PASSWORD_FOR_DECODING_ARTIFACT: ${{ inputs.PASSWORD_FOR_DECODING_ARTIFACT }}
run: |
npx playwright merge-reports --reporter html ./all-blob-reports
zip -P $PASSWORD_FOR_DECODING_ARTIFACT secure-report.zip -r ./playwright-report

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
path: secure-report.zip
retention-days: 14
3 changes: 3 additions & 0 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ jobs:

- name: Merge playwright reports
uses: ./.github/actions/merge-pw-reports
with:
PASSWORD_FOR_DECODING_ARTIFACT: ${{ secrets.TESTS_RESULT_PASSWORD }}

- name: complete testmo report
uses: ./.github/actions/testmo/testmo-finish
Expand All @@ -242,6 +244,7 @@ jobs:
testmoToken: ${{ secrets.TESTMO_TOKEN }}
testmoRunId: ${{ needs.deploy-dashboard.outputs.TESTMO_RUN_ID }}


- name: Create flaky report
uses: ./.github/actions/flaky-tests-report
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-test-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ jobs:

- name: Merge playwright reports
uses: ./.github/actions/merge-pw-reports
with:
PASSWORD_FOR_DECODING_ARTIFACT: ${{ secrets.TESTS_RESULT_PASSWORD }}

- name: complete testmo report
uses: ./.github/actions/testmo/testmo-finish
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/run-tests-on-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Run automation tests on release
on:

workflow_call:
inputs:
VERSION:
Expand Down Expand Up @@ -41,7 +40,7 @@ on:
RUN_URL:
value: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
description: Url to job run
PR_COMMENT:
PR_COMMENT:
value: ${{ jobs.tests-complete.outputs.PR_COMMENT }}
description: Comment for release PR

Expand Down Expand Up @@ -288,6 +287,8 @@ jobs:
- name: Merge playwright reports
if: needs.add-check-and-prepare-instance.outputs.FRAMEWORK == 'Playwright-tests'
uses: ./.github/actions/merge-pw-reports
with:
PASSWORD_FOR_DECODING_ARTIFACT: ${{ secrets.TESTS_RESULT_PASSWORD }}

- name: Merge cypress reports
if: needs.add-check-and-prepare-instance.outputs.FRAMEWORK == 'Cypress-tests'
Expand Down
Loading