Add browsers

This commit is contained in:
Lee Miller 2024-03-03 22:50:27 +02:00
parent 7b38bbc5ad
commit 66fa3e0e63
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
4 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,8 @@
FROM node:18-bullseye FROM node:18-bullseye
RUN apt-get update RUN apt-get update
RUN apt-get install -yq --no-install-suggests --no-install-recommends xauth xvfb RUN apt-get install -yq --no-install-suggests --no-install-recommends \
xauth xvfb chromium firefox-esr
WORKDIR /app WORKDIR /app
ADD src ./src ADD src ./src

View File

@ -9,7 +9,7 @@ jobs:
run: | run: |
apt-get update apt-get update
apt-get install -yq --no-install-suggests --no-install-recommends \ apt-get install -yq --no-install-suggests --no-install-recommends \
xauth xvfb xauth xvfb chromium firefox-esr
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install - name: Install

View File

@ -1,4 +1,4 @@
process.env.CHROME_BIN = "chromium-browser"; process.env.CHROME_BIN = "/usr/bin/chromium";
var allTests = process.env.ALL_TESTS === "1"; var allTests = process.env.ALL_TESTS === "1";
module.exports = function(config) { module.exports = function(config) {

View File

@ -8,7 +8,7 @@
}, },
"scripts": { "scripts": {
"install": "node-gyp rebuild || exit 0", "install": "node-gyp rebuild || exit 0",
"test": "ALL_TESTS=1 mocha && ALL_TESTS=1 xvfb-run -a karma start --browsers Chromium && ALL_TESTS=1 xvfb-run -a karma start --browsers Firefox && jshint .", "test": "ALL_TESTS=1 mocha && xvfb-run -a karma start && jshint .",
"m": "mocha", "m": "mocha",
"kc": "xvfb-run -a karma start --browsers Chromium", "kc": "xvfb-run -a karma start --browsers Chromium",
"kf": "xvfb-run -a karma start --browsers Firefox", "kf": "xvfb-run -a karma start --browsers Firefox",