Use `headlessFirefox` and update to Node 20 (#12794)

This commit is contained in:
Adam Turner 2024-08-17 00:18:24 +01:00 committed by GitHub
parent 90b57914d1
commit 2e1415cf6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -23,11 +23,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
env:
FORCE_COLOR: "1"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
node-version: "16" node-version: "20"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -37,5 +40,4 @@ jobs:
node-version: ${{ env.node-version }} node-version: ${{ env.node-version }}
cache: "npm" cache: "npm"
- run: npm install - run: npm install
- name: Run headless test - run: npm test
run: xvfb-run -a npm test

View File

@ -23,6 +23,6 @@ export default {
hostname: "127.0.0.1", hostname: "127.0.0.1",
browser: { browser: {
name: "firefox" name: "headlessFirefox"
} }
}; };