From 2e1415cf6c0e904734fea49de738d0748d3e1fbd Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Sat, 17 Aug 2024 00:18:24 +0100 Subject: [PATCH] Use ``headlessFirefox`` and update to Node 20 (#12794) --- .github/workflows/nodejs.yml | 8 +++++--- tests/js/jasmine-browser.mjs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index fece8861873..29359f90958 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -23,11 +23,14 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true +env: + FORCE_COLOR: "1" + jobs: build: runs-on: ubuntu-latest env: - node-version: "16" + node-version: "20" steps: - uses: actions/checkout@v4 @@ -37,5 +40,4 @@ jobs: node-version: ${{ env.node-version }} cache: "npm" - run: npm install - - name: Run headless test - run: xvfb-run -a npm test + - run: npm test diff --git a/tests/js/jasmine-browser.mjs b/tests/js/jasmine-browser.mjs index 7cc8610dd76..b84217fd8c5 100644 --- a/tests/js/jasmine-browser.mjs +++ b/tests/js/jasmine-browser.mjs @@ -23,6 +23,6 @@ export default { hostname: "127.0.0.1", browser: { - name: "firefox" + name: "headlessFirefox" } };