1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2026-05-06 20:09:18 +08:00

Update Docker test file to NodeJS 18, fix Karma config filename (#135)

This commit is contained in:
saaj
2026-04-05 17:13:06 +02:00
committed by GitHub
parent c2c376219f
commit 5019013eff

View File

@@ -3,12 +3,12 @@
# docker build -t sqliteviz/test -f Dockerfile.test . # docker build -t sqliteviz/test -f Dockerfile.test .
# #
FROM node:12.22-bullseye FROM node:18.20.8-bookworm
RUN set -ex; \ RUN set -ex; \
apt update; \ apt update; \
apt install -y chromium firefox-esr; \ apt install -y chromium firefox-esr; \
npm install -g npm@7 npm install -g npm@10
WORKDIR /tmp/build WORKDIR /tmp/build
@@ -19,6 +19,6 @@ RUN npm install
COPY . . COPY . .
RUN set -ex; \ RUN set -ex; \
sed -i 's/browsers: \[.*\],/browsers: ['"'FirefoxHeadlessTouch'"'],/' karma.conf.js sed -i 's/browsers: \[.*\],/browsers: ['"'FirefoxHeadlessTouch'"'],/' karma.conf.cjs
RUN npm run lint -- --no-fix && npm run test RUN npm run lint -- --no-fix && npm run test