Customizable wpt options and profile in workflows (#30912)

* wpt -> wpt-sync

* Add profile configuration option

* Add wpt (for custom tests selection) to CI

* Renaming of wpt-* options

* fixup! do renames also in scripts

* fixup! profile

* Fix try labels
This commit is contained in:
Samson 2023-12-22 13:49:39 +01:00 committed by GitHub
parent 81f5157522
commit 1f0f50b22b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 105 additions and 61 deletions

View file

@ -6,10 +6,15 @@ on:
required: false
default: "release"
type: string
wpt:
wpt-tests-to-run:
default: ""
required: false
type: string
layout:
wpt-sync-from-upstream:
required: false
default: false
type: boolean
wpt-layout:
required: false
type: string
unit-tests:
@ -30,12 +35,15 @@ on:
default: "release"
type: choice
options: ["release", "debug", "production"]
wpt:
default: "test"
wpt-tests-to-run:
default: ""
required: false
type: choice
options: ["test", "sync"]
layout:
type: string
wpt-sync-from-upstream:
default: false
required: false
type: boolean
wpt-layout:
required: false
type: choice
options: ["none", "2013", "2020", "all"]
@ -140,25 +148,27 @@ jobs:
path: target.tar.gz
wpt-2020:
if: ${{ inputs.layout == '2020' || inputs.layout == 'all' }}
if: ${{ inputs.wpt-layout == '2020' || inputs.wpt-layout == 'all' }}
name: Linux WPT Tests 2020
needs: ["build"]
uses: ./.github/workflows/linux-wpt.yml
with:
wpt-tests-to-run: ${{ inputs.wpt-tests-to-run }}
profile: ${{ inputs.profile }}
wpt: ${{ inputs.wpt }}
layout: "layout-2020"
wpt-sync-from-upstream: ${{ inputs.wpt-sync-from-upstream }}
wpt-layout: "layout-2020"
secrets: inherit
wpt-2013:
if: ${{ inputs.layout == '2013' || inputs.layout == 'all' }}
if: ${{ inputs.wpt-layout == '2013' || inputs.wpt-layout == 'all' }}
name: Linux WPT Tests 2013
needs: ["build"]
uses: ./.github/workflows/linux-wpt.yml
with:
wpt-tests-to-run: ${{ inputs.wpt-tests-to-run }}
profile: ${{ inputs.profile }}
wpt: ${{ inputs.wpt }}
layout: "layout-2013"
wpt-sync-from-upstream: ${{ inputs.wpt-sync-from-upstream }}
wpt-layout: "layout-2013"
secrets: inherit
result: