Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: skip reporting steps when setup fails before tests run (#39417)
Yury Semikhatsky8bf42f929961
diff --git a/.github/actions/run-test/action.yml b/.github/actions/run-test/action.ymlindex f1c15d5abd..1798e13fe2 100644--- a/.github/actions/run-test/action.yml+++ b/.github/actions/run-test/action.yml@@ -55,6 +55,8 @@ runs:npx playwright install --with-deps ${{ inputs.browsers-to-install }}echo "::endgroup::"shell: bash+ - run: echo "PLAYWRIGHT_SETUP_COMPLETE=true" >> $GITHUB_ENV+ shell: bash- name: Run testsif: inputs.shell == 'bash'run: |@@ -74,7 +76,7 @@ runs:PW_TAG: "@${{ inputs.bot-name }}"- name: Azure Loginuses: azure/login@v2- if: ${{ !cancelled() && github.event_name == 'push' && github.repository == 'microsoft/playwright' }}+ if: ${{ !cancelled() && env.PLAYWRIGHT_SETUP_COMPLETE == 'true' && github.event_name == 'push' && github.repository == 'microsoft/playwright' }}with:client-id: ${{ inputs.flakiness-client-id }}tenant-id: ${{ inputs.flakiness-tenant-id }}@@ -83,10 +85,10 @@ runs:echo "::group::./utils/upload_flakiness_dashboard.sh"./utils/upload_flakiness_dashboard.sh ./test-results/report.jsonecho "::endgroup::"- if: ${{ !cancelled() }}+ if: ${{ !cancelled() && env.PLAYWRIGHT_SETUP_COMPLETE == 'true' }}shell: bash- name: Upload blob report- if: ${{ !cancelled() && (github.event_name == 'pull_request' || failure()) }}+ if: ${{ !cancelled() && env.PLAYWRIGHT_SETUP_COMPLETE == 'true' && (github.event_name == 'pull_request' || failure()) }}uses: ./.github/actions/upload-blob-reportwith:report_dir: blob-report