Просмотр исходного кода

build: run tests in docker container during build

Reduces the risk of an updated Docker image breaking things unnoticed
Jonas Gloning 2 лет назад
Родитель
Сommit
1363adf592
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Dockerfile

+ 1 - 0
Dockerfile

@@ -5,6 +5,7 @@ COPY package.json package-lock.json ./
 RUN npm clean-install
 COPY . ./
 RUN npm run build
+RUN npm run test
 
 FROM node:18.13.0-alpine as production
 RUN mkdir /peer-server