devops: allow manual trigger of bidi tests (#35529)
This commit is contained in:
parent
4c85672f02
commit
aa221cbe37
|
@ -2,6 +2,11 @@ name: tests BiDi
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
ref:
|
||||||
|
description: Playwright SHA / ref to test. Use 'refs/pull/PULL_REQUEST_ID/head' to test a PR. Defaults to the current branch.
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
@ -9,7 +14,6 @@ on:
|
||||||
- .github/workflows/tests_bidi.yml
|
- .github/workflows/tests_bidi.yml
|
||||||
- packages/playwright-core/src/server/bidi/**
|
- packages/playwright-core/src/server/bidi/**
|
||||||
- tests/bidi/**
|
- tests/bidi/**
|
||||||
types: [ labeled ]
|
|
||||||
schedule:
|
schedule:
|
||||||
# Run every day at midnight
|
# Run every day at midnight
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
@ -19,7 +23,6 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_bidi:
|
test_bidi:
|
||||||
if: ${{ (github.event_name == 'pull_request' && github.event.label.name == 'CQ-bidi') || github.event_name != 'pull_request' }}
|
|
||||||
name: BiDi
|
name: BiDi
|
||||||
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
|
||||||
|
@ -32,6 +35,11 @@ jobs:
|
||||||
channel: [bidi-chromium, bidi-firefox-nightly]
|
channel: [bidi-chromium, bidi-firefox-nightly]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
if: github.event_name != 'workflow_dispatch'
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.inputs.ref }}
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
Loading…
Reference in New Issue