From 1c87dc5c70e19a38a5c7c15000e575f01f6cbda5 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Fri, 16 Aug 2024 23:31:41 +0100 Subject: [PATCH] Use ``headlessFirefox`` and update to Node 20 --- .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" } };