Install browsers in the buildbot container and set CHROME_BIN for npm test

This commit is contained in:
Lee Miller 2024-03-01 02:06:09 +02:00
parent d7084961f1
commit 1622be8696
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 3 additions and 2 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
COPY package*.json binding.gyp *.cc ./ COPY package*.json binding.gyp *.cc ./

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
npm test CHROME_BIN=/usr/bin/chromium npm test