@jahia/cypress 3.19.3 → 3.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ci.build.sh CHANGED
@@ -39,6 +39,6 @@ if [ -d ./jahia-module ]; then
39
39
  fi
40
40
  cd ..
41
41
  fi
42
+ YARN_VERSION=${YARN_VERSION:-1.22.19}
42
43
 
43
-
44
- docker build -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
44
+ docker build --build-arg YARN_VERSION=${YARN_VERSION} -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
package/env.Dockerfile CHANGED
@@ -2,8 +2,11 @@ FROM cypress/browsers:node-20.10.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.
2
2
 
3
3
  ARG MAVEN_VER="3.8.1"
4
4
  ARG MAVEN_BASE_URL="https://archive.apache.org/dist/maven/maven-3"
5
+ ARG YARN_VERSION="1.22.19"
5
6
 
6
- RUN apt-get update && apt-get install -y jq curl
7
+ RUN apt-get update && apt-get install -y jq curl ; \
8
+ npm -g install corepack ; \
9
+ corepack enable
7
10
 
8
11
  RUN adduser --disabled-password jahians
9
12
 
@@ -15,11 +18,12 @@ COPY --chown=jahians:jahians package.json yarn.lock /home/jahians/
15
18
  RUN mkdir -p /home/jahians/run-artifacts /home/jahians/results /home/jahians/cypress/plugins
16
19
 
17
20
  #CI=true reduces the verbosity of the installation logs
18
- RUN CI=true yarn install --non-interactive
21
+ RUN CI=true yarn set version ${YARN_VERSION} ;
19
22
 
20
23
  COPY --chown=jahians:jahians . /home/jahians
21
24
 
22
- RUN CI=true /home/jahians/node_modules/.bin/cypress install
25
+ RUN CI=true yarn install ; \
26
+ /home/jahians/node_modules/.bin/cypress install
23
27
 
24
28
  RUN mkdir -p .m2; cp maven.settings.xml .m2/settings.xml; exit 0
25
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/cypress",
3
- "version": "3.19.3",
3
+ "version": "3.19.4",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "lint": "eslint src -c .eslintrc.json --ext .ts"