fix(ci): Prevent workflows from automatically running on forks (#34408)
This commit is contained in:
parent
7e97e01505
commit
b75fc4c547
|
@ -18,6 +18,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
test_bidi:
|
test_bidi:
|
||||||
name: BiDi
|
name: BiDi
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
@ -20,6 +20,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
test_components:
|
test_components:
|
||||||
name: ${{ matrix.os }} - Node.js ${{ matrix.node-version }}
|
name: ${{ matrix.os }} - Node.js ${{ matrix.node-version }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -21,6 +21,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
test_stress:
|
test_stress:
|
||||||
name: Stress - ${{ matrix.os }}
|
name: Stress - ${{ matrix.os }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -57,6 +58,7 @@ jobs:
|
||||||
|
|
||||||
test_webview2:
|
test_webview2:
|
||||||
name: WebView2
|
name: WebView2
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -87,6 +89,7 @@ jobs:
|
||||||
|
|
||||||
test_clock_frozen_time_linux:
|
test_clock_frozen_time_linux:
|
||||||
name: time library - ${{ matrix.clock }}
|
name: time library - ${{ matrix.clock }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # This is required for OIDC login (azure/login) to succeed
|
id-token: write # This is required for OIDC login (azure/login) to succeed
|
||||||
|
@ -112,6 +115,7 @@ jobs:
|
||||||
|
|
||||||
test_clock_frozen_time_test_runner:
|
test_clock_frozen_time_test_runner:
|
||||||
name: time test runner - ${{ matrix.clock }}
|
name: time test runner - ${{ matrix.clock }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -136,6 +140,7 @@ jobs:
|
||||||
|
|
||||||
test_electron:
|
test_electron:
|
||||||
name: Electron - ${{ matrix.os }}
|
name: Electron - ${{ matrix.os }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -27,6 +27,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
test_linux:
|
test_linux:
|
||||||
name: ${{ matrix.os }} (${{ matrix.browser }} - Node.js ${{ matrix.node-version }})
|
name: ${{ matrix.os }} (${{ matrix.browser }} - Node.js ${{ matrix.node-version }})
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -59,6 +60,7 @@ jobs:
|
||||||
|
|
||||||
test_linux_chromium_tot:
|
test_linux_chromium_tot:
|
||||||
name: ${{ matrix.os }} (chromium tip-of-tree)
|
name: ${{ matrix.os }} (chromium tip-of-tree)
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -83,6 +85,7 @@ jobs:
|
||||||
|
|
||||||
test_test_runner:
|
test_test_runner:
|
||||||
name: Test Runner
|
name: Test Runner
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -127,6 +130,7 @@ jobs:
|
||||||
|
|
||||||
test_web_components:
|
test_web_components:
|
||||||
name: Web Components
|
name: Web Components
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -162,6 +166,7 @@ jobs:
|
||||||
|
|
||||||
test_vscode_extension:
|
test_vscode_extension:
|
||||||
name: VSCode Extension
|
name: VSCode Extension
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
PWTEST_BOT_NAME: "vscode-extension"
|
PWTEST_BOT_NAME: "vscode-extension"
|
||||||
|
@ -198,6 +203,7 @@ jobs:
|
||||||
|
|
||||||
test_package_installations:
|
test_package_installations:
|
||||||
name: "Installation Test ${{ matrix.os }}"
|
name: "Installation Test ${{ matrix.os }}"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -26,6 +26,7 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
test_linux:
|
test_linux:
|
||||||
name: ${{ matrix.os }} (${{ matrix.browser }})
|
name: ${{ matrix.os }} (${{ matrix.browser }})
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -46,6 +47,7 @@ jobs:
|
||||||
|
|
||||||
test_mac:
|
test_mac:
|
||||||
name: ${{ matrix.os }} (${{ matrix.browser }})
|
name: ${{ matrix.os }} (${{ matrix.browser }})
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -73,6 +75,7 @@ jobs:
|
||||||
|
|
||||||
test_win:
|
test_win:
|
||||||
name: "Windows"
|
name: "Windows"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -92,6 +95,7 @@ jobs:
|
||||||
|
|
||||||
test-package-installations-other-node-versions:
|
test-package-installations-other-node-versions:
|
||||||
name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})"
|
name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -125,6 +129,7 @@ jobs:
|
||||||
|
|
||||||
headed_tests:
|
headed_tests:
|
||||||
name: "headed ${{ matrix.browser }} (${{ matrix.os }})"
|
name: "headed ${{ matrix.browser }} (${{ matrix.os }})"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -151,6 +156,7 @@ jobs:
|
||||||
|
|
||||||
transport_linux:
|
transport_linux:
|
||||||
name: "Transport"
|
name: "Transport"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -172,6 +178,7 @@ jobs:
|
||||||
|
|
||||||
tracing_linux:
|
tracing_linux:
|
||||||
name: Tracing ${{ matrix.browser }} ${{ matrix.channel }}
|
name: Tracing ${{ matrix.browser }} ${{ matrix.channel }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -199,6 +206,7 @@ jobs:
|
||||||
|
|
||||||
test_chromium_channels:
|
test_chromium_channels:
|
||||||
name: Test ${{ matrix.channel }} on ${{ matrix.runs-on }}
|
name: Test ${{ matrix.channel }} on ${{ matrix.runs-on }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: ${{ matrix.runs-on }}
|
runs-on: ${{ matrix.runs-on }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -221,6 +229,7 @@ jobs:
|
||||||
|
|
||||||
chromium_tot:
|
chromium_tot:
|
||||||
name: Chromium tip-of-tree ${{ matrix.os }}${{ matrix.headed }}
|
name: Chromium tip-of-tree ${{ matrix.os }}${{ matrix.headed }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -243,6 +252,7 @@ jobs:
|
||||||
|
|
||||||
chromium_tot_headless_shell:
|
chromium_tot_headless_shell:
|
||||||
name: Chromium tip-of-tree headless-shell-${{ matrix.os }}
|
name: Chromium tip-of-tree headless-shell-${{ matrix.os }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -264,6 +274,7 @@ jobs:
|
||||||
|
|
||||||
firefox_beta:
|
firefox_beta:
|
||||||
name: Firefox Beta ${{ matrix.os }}
|
name: Firefox Beta ${{ matrix.os }}
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -285,6 +296,7 @@ jobs:
|
||||||
|
|
||||||
build-playwright-driver:
|
build-playwright-driver:
|
||||||
name: "build-playwright-driver"
|
name: "build-playwright-driver"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -298,6 +310,7 @@ jobs:
|
||||||
|
|
||||||
test_channel_chromium:
|
test_channel_chromium:
|
||||||
name: Test channel=chromium
|
name: Test channel=chromium
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -10,6 +10,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: "Service"
|
name: "Service"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -14,6 +14,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
video_linux:
|
video_linux:
|
||||||
name: "Video Linux"
|
name: "Video Linux"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
environment: allow-uploading-flakiness-results
|
environment: allow-uploading-flakiness-results
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -9,6 +9,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
|
if: github.repository == 'microsoft/playwright'
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
|
|
Loading…
Reference in New Issue