feat: refs #6695 add Dockerfile for Cypress setup and update Jenkinsfile for installation steps
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-20 14:44:27 +01:00
parent dfbfd34900
commit 7e738633a1
2 changed files with 30 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -64,7 +64,6 @@ pipeline {
}
steps {
sh 'pnpm install --prefer-offline'
sh 'pnpm exec cypress install'
}
}
stage('Test') {
@ -102,6 +101,9 @@ pipeline {
def image = docker.build('cypress-setup', '-f ./test/cypress/Dockerfile .')
image.inside("--network ${env.COMPOSE_PROJECT}_default -e TZ -e CI") {
sh 'pwd'
sh 'ls -l'
sh 'cypress install'
sh 'cypress run --browser chromium --spec test/cypress/integration/claim/claimAction.spec.js'
}
}

27
docs/Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM node:lts-bookworm
ENV SHELL bash
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm@8.15.1 && \
pnpm setup && \
pnpm install -g @quasar/cli@2.2.1
RUN apt-get -y --fix-missing update && \
apt-get -y --fix-missing upgrade && \
apt-get -y --no-install-recommends install \
apt-utils \
chromium \
libasound2 \
libgbm-dev \
libgtk-3-0 \
libgtk2.0-0 \
libnotify-dev \
libnss3 \
libxss1 \
libxtst6 \
xauth \
xvfb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*