Skip to content

Commit

Permalink
Adding failure step to get the outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Mar 29, 2024
1 parent d071b11 commit c27b42d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/template-ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ jobs:
retry-delay: 10s

- name: Run Playwright tests
id: run
run: npx playwright test ${{ inputs.tests_to_run }}seo-prs
env:
HOST_URL: ${{ inputs.deploy_url }}

- name: Run on failure
id: failure
if: failure() && steps.run.outcome == 'failure'
run: |
echo " This is output of preivous job ${{ steps.run.outcome }}"
echo "testPassed='False'" >> $env:GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
if: always()
id: artifact-report
Expand Down

0 comments on commit c27b42d

Please sign in to comment.