Skip to content

build(chrome): update the pinned browser version #2532

build(chrome): update the pinned browser version

build(chrome): update the pinned browser version #2532

Workflow file for this run

# This workflow will run headful selenium tests.
name: Selenium tests
# Declare default permissions as read only.
permissions: read-all
on:
merge_group:
pull_request:
push:
branches: 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
selenium:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- 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@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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: Install chromedriver for the pinned browser
id: driver
run: node tools/install-browser.mjs --chromedriver --github
- name: Run Selenium test
timeout-minutes: 20
run: >
xvfb-run --auto-servernum
node tests_external/selenium.mjs
env:
BROWSER_BIN: ${{ steps.browser.outputs.executablePath }}
CHROMEDRIVER_BIN: ${{ steps.driver.outputs.executablePath }}