diff --git a/.github/workflows/tests_bidi.yml b/.github/workflows/tests_bidi.yml index 83b623226b..99b756c2b3 100644 --- a/.github/workflows/tests_bidi.yml +++ b/.github/workflows/tests_bidi.yml @@ -18,7 +18,7 @@ env: jobs: test_bidi: name: BiDi - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} runs-on: ubuntu-24.04 permissions: diff --git a/.github/workflows/tests_components.yml b/.github/workflows/tests_components.yml index 68ef9fe05e..d1950494e4 100644 --- a/.github/workflows/tests_components.yml +++ b/.github/workflows/tests_components.yml @@ -21,7 +21,7 @@ env: jobs: test_components: name: ${{ matrix.os }} - Node.js ${{ matrix.node-version }} - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' strategy: fail-fast: false matrix: diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml index f345bff781..5849e4adf9 100644 --- a/.github/workflows/tests_primary.yml +++ b/.github/workflows/tests_primary.yml @@ -28,7 +28,7 @@ env: jobs: test_linux: name: ${{ matrix.os }} (${{ matrix.browser }} - Node.js ${{ matrix.node-version }}) - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -61,7 +61,7 @@ jobs: test_linux_chromium_tot: name: ${{ matrix.os }} (chromium tip-of-tree) - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -86,7 +86,7 @@ jobs: test_test_runner: name: Test Runner - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -131,7 +131,7 @@ jobs: test_web_components: name: Web Components - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -167,7 +167,7 @@ jobs: test_vscode_extension: name: VSCode Extension - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' runs-on: ubuntu-latest env: PWTEST_BOT_NAME: "vscode-extension" @@ -204,7 +204,7 @@ jobs: test_package_installations: name: "Installation Test ${{ matrix.os }}" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml index 23233403e6..4a818bf0f4 100644 --- a/.github/workflows/tests_secondary.yml +++ b/.github/workflows/tests_secondary.yml @@ -27,7 +27,7 @@ permissions: jobs: test_linux: name: ${{ matrix.os }} (${{ matrix.browser }}) - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -48,7 +48,7 @@ jobs: test_mac: name: ${{ matrix.os }} (${{ matrix.browser }}) - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -76,7 +76,7 @@ jobs: test_win: name: "Windows" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -96,7 +96,7 @@ jobs: test-package-installations-other-node-versions: name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} runs-on: ${{ matrix.os }} strategy: @@ -130,7 +130,7 @@ jobs: headed_tests: name: "headed ${{ matrix.browser }} (${{ matrix.os }})" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -157,7 +157,7 @@ jobs: transport_linux: name: "Transport" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -179,7 +179,7 @@ jobs: tracing_linux: name: Tracing ${{ matrix.browser }} ${{ matrix.channel }} - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false @@ -207,7 +207,7 @@ jobs: test_chromium_channels: name: Test ${{ matrix.channel }} on ${{ matrix.runs-on }} - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} runs-on: ${{ matrix.runs-on }} strategy: @@ -230,7 +230,7 @@ jobs: chromium_tot: name: Chromium tip-of-tree ${{ matrix.os }}${{ matrix.headed }} - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} runs-on: ${{ matrix.os }} strategy: @@ -253,7 +253,7 @@ jobs: chromium_tot_headless_shell: name: Chromium tip-of-tree headless-shell-${{ matrix.os }} - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} runs-on: ${{ matrix.os }} strategy: @@ -275,7 +275,7 @@ jobs: firefox_beta: name: Firefox Beta ${{ matrix.os }} - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} runs-on: ${{ matrix.os }} strategy: @@ -297,7 +297,7 @@ jobs: build-playwright-driver: name: "build-playwright-driver" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -311,7 +311,7 @@ jobs: test_channel_chromium: name: Test channel=chromium - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }} strategy: fail-fast: false diff --git a/.github/workflows/tests_service.yml b/.github/workflows/tests_service.yml index 7cb86d52b4..ebd78ff37c 100644 --- a/.github/workflows/tests_service.yml +++ b/.github/workflows/tests_service.yml @@ -10,7 +10,7 @@ env: jobs: test: name: "Service" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' strategy: fail-fast: false matrix: diff --git a/.github/workflows/tests_video.yml b/.github/workflows/tests_video.yml index 0445db2361..d6b0552126 100644 --- a/.github/workflows/tests_video.yml +++ b/.github/workflows/tests_video.yml @@ -15,7 +15,7 @@ env: jobs: video_linux: name: "Video Linux" - if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' + if: github.repository == 'microsoft/playwright' environment: allow-uploading-flakiness-results strategy: fail-fast: false