Skip to content

Commit

Permalink
chore: enable manual test triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
agg23 committed Jan 24, 2025
1 parent bbd5558 commit 3b5a50c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests_bidi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
jobs:
test_bidi:
name: BiDi
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: ubuntu-24.04
permissions:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests_components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
branches:
- main
- release-*
workflow_dispatch:

env:
FORCE_COLOR: 1
Expand All @@ -20,7 +21,7 @@ env:
jobs:
test_components:
name: ${{ matrix.os }} - Node.js ${{ matrix.node-version }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/tests_others.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
branches:
- main
- release-*
workflow_dispatch:

env:
FORCE_COLOR: 1
Expand All @@ -21,7 +22,7 @@ env:
jobs:
test_stress:
name: Stress - ${{ matrix.os }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -58,7 +59,7 @@ jobs:

test_webview2:
name: WebView2
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: windows-2022
permissions:
Expand Down Expand Up @@ -89,7 +90,7 @@ jobs:

test_clock_frozen_time_linux:
name: time library - ${{ matrix.clock }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
permissions:
id-token: write # This is required for OIDC login (azure/login) to succeed
Expand All @@ -115,7 +116,7 @@ jobs:

test_clock_frozen_time_test_runner:
name: time test runner - ${{ matrix.clock }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: ubuntu-22.04
permissions:
Expand All @@ -140,7 +141,7 @@ jobs:

test_electron:
name: Electron - ${{ matrix.os }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/tests_primary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
branches:
- main
- release-*
workflow_dispatch:

concurrency:
# For pull requests, cancel all currently-running jobs for this workflow
Expand All @@ -27,7 +28,7 @@ env:
jobs:
test_linux:
name: ${{ matrix.os }} (${{ matrix.browser }} - Node.js ${{ matrix.node-version }})
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:

test_linux_chromium_tot:
name: ${{ matrix.os }} (chromium tip-of-tree)
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand All @@ -85,7 +86,7 @@ jobs:

test_test_runner:
name: Test Runner
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -130,7 +131,7 @@ jobs:

test_web_components:
name: Web Components
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -166,7 +167,7 @@ jobs:

test_vscode_extension:
name: VSCode Extension
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
env:
PWTEST_BOT_NAME: "vscode-extension"
Expand Down Expand Up @@ -203,7 +204,7 @@ jobs:

test_package_installations:
name: "Installation Test ${{ matrix.os }}"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand Down
27 changes: 14 additions & 13 deletions .github/workflows/tests_secondary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
branches:
- main
- release-*
workflow_dispatch:

env:
# Force terminal colors. @see https://www.npmjs.com/package/colors
Expand All @@ -26,7 +27,7 @@ permissions:
jobs:
test_linux:
name: ${{ matrix.os }} (${{ matrix.browser }})
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand All @@ -47,7 +48,7 @@ jobs:

test_mac:
name: ${{ matrix.os }} (${{ matrix.browser }})
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:

test_win:
name: "Windows"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand All @@ -95,7 +96,7 @@ jobs:

test-package-installations-other-node-versions:
name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -129,7 +130,7 @@ jobs:

headed_tests:
name: "headed ${{ matrix.browser }} (${{ matrix.os }})"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand All @@ -156,7 +157,7 @@ jobs:

transport_linux:
name: "Transport"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand All @@ -178,7 +179,7 @@ jobs:

tracing_linux:
name: Tracing ${{ matrix.browser }} ${{ matrix.channel }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -206,7 +207,7 @@ jobs:

test_chromium_channels:
name: Test ${{ matrix.channel }} on ${{ matrix.runs-on }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: ${{ matrix.runs-on }}
strategy:
Expand All @@ -229,7 +230,7 @@ jobs:

chromium_tot:
name: Chromium tip-of-tree ${{ matrix.os }}${{ matrix.headed }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -252,7 +253,7 @@ jobs:

chromium_tot_headless_shell:
name: Chromium tip-of-tree headless-shell-${{ matrix.os }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -274,7 +275,7 @@ jobs:

firefox_beta:
name: Firefox Beta ${{ matrix.os }}
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -296,7 +297,7 @@ jobs:

build-playwright-driver:
name: "build-playwright-driver"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -310,7 +311,7 @@ jobs:

test_channel_chromium:
name: Test channel=chromium
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_dispatch'
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
jobs:
test:
name: "Service"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests_video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- release-*
workflow_dispatch:

env:
# Force terminal colors. @see https://www.npmjs.com/package/colors
Expand All @@ -14,7 +15,7 @@ env:
jobs:
video_linux:
name: "Video Linux"
if: github.repository == 'microsoft/playwright'
if: github.repository == 'microsoft/playwright' || github.event_name == 'workflow_dispatch'
environment: allow-uploading-flakiness-results
strategy:
fail-fast: false
Expand Down

0 comments on commit 3b5a50c

Please sign in to comment.