From 26131969a022e72bfbfbba909a6d823032ec6d77 Mon Sep 17 00:00:00 2001 From: akshayp7 Date: Sun, 25 Feb 2024 17:28:56 +0530 Subject: [PATCH] GitHubActions --- .github/workflows/playwright.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index e77d96d..1ffb0b1 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -52,6 +52,15 @@ jobs: # This step should always run, even if previous steps fail if: always() + - name: Check if HTML report exists + run: | + if [ -d "html-report" ]; then + echo "HTML report exists." + else + echo "HTML report does not exist. Exiting..." + exit 1 + fi + # Step to zip html-report folder - name: Zip HTML report run: zip -r html-report.zip html-report @@ -66,6 +75,7 @@ jobs: - name: Generate artifact link id: artifact_link + # Adjust the wait time as needed run: echo "::set-output name=artifact_url::https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts" # Send Slack notification once the tests are completed