mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix wpt-sync-from-upstream boolean (#30925)
This commit is contained in:
parent
554b35b705
commit
3ce590bec4
1 changed files with 8 additions and 7 deletions
15
.github/workflows/linux-wpt.yml
vendored
15
.github/workflows/linux-wpt.yml
vendored
|
@ -10,6 +10,7 @@ on:
|
|||
required: false
|
||||
type: string
|
||||
wpt-sync-from-upstream:
|
||||
default: false
|
||||
required: false
|
||||
type: boolean
|
||||
wpt-layout:
|
||||
|
@ -67,11 +68,11 @@ jobs:
|
|||
sudo apt install ./libffi6_3.2.1-8_amd64.deb
|
||||
python3 ./mach bootstrap-gstreamer
|
||||
- name: Sync from upstream WPT
|
||||
if: ${{ inputs.wpt-sync-from-upstream == 'true' }}
|
||||
if: ${{ inputs.wpt-sync-from-upstream }}
|
||||
run: |
|
||||
./mach update-wpt --sync --patch
|
||||
- name: Run tests
|
||||
if: ${{ inputs.wpt-sync-from-upstream != 'true' }}
|
||||
if: ${{ !inputs.wpt-sync-from-upstream }}
|
||||
run: |
|
||||
python3 ./mach test-wpt $WPT_COMMAND_LINE_ARG ${{ inputs.wpt-tests-to-run }} \
|
||||
--${{ inputs.profile }} --processes $(nproc) --timeout-multiplier 2 \
|
||||
|
@ -83,7 +84,7 @@ jobs:
|
|||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
INTERMITTENT_TRACKER_DASHBOARD_SECRET: ${{ secrets.INTERMITTENT_TRACKER_DASHBOARD_SECRET }}
|
||||
- name: Run tests (sync)
|
||||
if: ${{ inputs.wpt-sync-from-upstream == 'true' }}
|
||||
if: ${{ inputs.wpt-sync-from-upstream }}
|
||||
run: |
|
||||
python3 ./mach test-wpt $WPT_COMMAND_LINE_ARG \
|
||||
--${{ inputs.profile }} --processes $(nproc) --timeout-multiplier 2 \
|
||||
|
@ -92,7 +93,7 @@ jobs:
|
|||
--always-succeed
|
||||
- name: Archive filtered results
|
||||
uses: actions/upload-artifact@v3
|
||||
if: ${{ always() && inputs.wpt-sync-from-upstream != 'true' }}
|
||||
if: ${{ always() && !inputs.wpt-sync-from-upstream }}
|
||||
with:
|
||||
name: wpt-filtered-results-linux-${{ inputs.wpt-layout }}
|
||||
path: |
|
||||
|
@ -100,14 +101,14 @@ jobs:
|
|||
unexpected-test-wpt.${{ matrix.chunk_id }}.log
|
||||
- name: Archive logs
|
||||
uses: actions/upload-artifact@v3
|
||||
if: ${{ failure() && inputs.wpt-sync-from-upstream != 'true' }}
|
||||
if: ${{ failure() && !inputs.wpt-sync-from-upstream }}
|
||||
with:
|
||||
name: wpt-logs-linux-${{ inputs.wpt-layout }}
|
||||
path: |
|
||||
test-wpt.${{ matrix.chunk_id }}.log
|
||||
- name: Archive logs
|
||||
uses: actions/upload-artifact@v3
|
||||
if: ${{ inputs.wpt-sync-from-upstream == 'true' }}
|
||||
if: ${{ inputs.wpt-sync-from-upstream }}
|
||||
with:
|
||||
name: wpt-logs-linux-${{ inputs.wpt-layout }}
|
||||
path: |
|
||||
|
@ -117,7 +118,7 @@ jobs:
|
|||
report-test-results:
|
||||
name: Report WPT Results
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ always() && !cancelled() && inputs.wpt-sync-from-upstream != 'true' }}
|
||||
if: ${{ always() && !cancelled() && !inputs.wpt-sync-from-upstream }}
|
||||
needs:
|
||||
- "linux-wpt"
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue