Skip to content

Commit

Permalink
Add password to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
karola312 committed Jan 4, 2025
1 parent 6c723fe commit 7bd99c3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
15 changes: 12 additions & 3 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
uses: actions/upload-artifact@v3
with:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
path: secure-report.zip
retention-days: 14
4 changes: 3 additions & 1 deletion .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,6 @@ jobs:
- uses: actions/checkout@v4

- name: Merge playwright reports
uses: ./.github/actions/merge-pw-reports
uses: ./.github/actions/merge-pw-reports
with:
PASSWORD_FOR_DECODING_ARTIFACT: ${{ secrets.E2E_USER_PASSWORD }}
2 changes: 2 additions & 0 deletions .github/workflows/run-test-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ jobs:

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

- name: complete testmo report
uses: ./.github/actions/testmo/testmo-finish
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-tests-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ jobs:
- name: Merge playwright reports
if: needs.add-check-and-prepare-instance.outputs.FRAMEWORK == '"playwright"'
uses: ./.github/actions/merge-pw-reports
with:
PASSWORD_FOR_DECODING_ARTIFACT: ${{ secrets.E2E_USER_PASSWORD }}

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

0 comments on commit 7bd99c3

Please sign in to comment.