Skip to content

Commit

Permalink
Upload accessibility report (#196)
Browse files Browse the repository at this point in the history
* Upload accessibility report

* ensure accessibility report is uploaded even if tests fail

* ensure accessibility report is uploaded with proper name even if tests fail

---------

Co-authored-by: conor <[email protected]>
  • Loading branch information
ConorFayleTCO and ConorFayleAND authored Apr 26, 2024
1 parent feff5c6 commit e468231
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/reusable_e2e_test_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,15 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ vars.AWS_REGION }}
if: ${{ !cancelled() && failure() }}

- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
if: ${{ !cancelled() }}

- name: Upload accessibility report
uses: actions/upload-artifact@v4
with:
name: accessibility-report-${{ inputs.environment }}-${{ inputs.browser }}-${{ env.NOW }}
path: /home/runner/work/gap-automated-tests/gap-automated-tests/cypress/accessibility/logs
retention-days: 30
if: ${{ !cancelled() }}

0 comments on commit e468231

Please sign in to comment.