build(deps): Bump wpt from 85e057d
to 0855433
#8125
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run headful and headless E2E tests. | |
name: E2E tests | |
# Declare default permissions as read only. | |
permissions: read-all | |
env: | |
DEBUG: 'bidi:server:*,bidi:mapper:*' | |
DEBUG_DEPTH: 10 | |
FORCE_COLOR: 3 | |
PIP_DISABLE_PIP_VERSION_CHECK: 1 | |
on: | |
merge_group: | |
pull_request: | |
push: | |
branches: 'main' | |
workflow_dispatch: | |
inputs: | |
verbose: | |
description: Verbose logging | |
default: false | |
required: false | |
type: boolean | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
e2e-required: | |
name: '[Required] e2e sink' | |
needs: [e2e] | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- if: ${{ needs.e2e.result != 'success' }} | |
run: 'exit 1' | |
- run: 'exit 0' | |
e2e: | |
strategy: | |
fail-fast: false | |
matrix: | |
# TODO(#876): Add Windows CI. | |
os: [ubuntu-latest, macos-latest] | |
head: [headful, headless] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Set up Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- uses: google/wireit@4aad131006ea85c1e42af927534ebb13426dd730 # setup-github-actions-caching/v1.0.2 | |
- name: Install and build npm dependencies | |
run: npm ci | |
- name: Setup cache for browser binaries | |
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 | |
with: | |
path: ~/.cache/chromium-bidi | |
key: ${{ runner.os }}-browsers-${{ hashFiles('.browser') }}) }} | |
- name: Install pinned browser | |
id: browser | |
run: node tools/install-browser.mjs --github | |
- name: Set up Python | |
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | |
with: | |
python-version: '3.11' | |
cache: pipenv | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: Install python dependencies | |
run: pipenv install | |
- name: Run E2E tests | |
if: matrix.os == 'ubuntu-latest' && matrix.head == 'headful' | |
timeout-minutes: 20 | |
run: > | |
xvfb-run --auto-servernum | |
npm run e2e:${{ matrix.head }} | |
# For verbose logging, set `DEBUG: 'bidi:mapper:*'` and `VERBOSE: true`. | |
env: | |
BROWSER_BIN: ${{ steps.browser.outputs.executablePath }} | |
VERBOSE: ${{ github.event.inputs.verbose }} | |
- name: Run E2E tests | |
if: matrix.os != 'ubuntu-latest' || (matrix.os == 'ubuntu-latest' && matrix.head == 'headless') | |
timeout-minutes: 20 | |
run: npm run e2e:${{ matrix.head }} | |
# For verbose logging, set `DEBUG: 'bidi:mapper:*'` and `VERBOSE: true`. | |
env: | |
BROWSER_BIN: ${{ steps.browser.outputs.executablePath }} | |
VERBOSE: ${{ github.event.inputs.verbose }} | |
- name: Upload artifacts | |
if: always() | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | |
with: | |
name: ${{ matrix.os }}-${{ matrix.head }}-artifacts | |
path: logs |