@jahia/cypress 7.2.0 → 7.4.0

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
@@ -41,4 +41,20 @@ if [ -d ./jahia-module ]; then
41
41
  fi
42
42
  YARN_VERSION=${YARN_VERSION:-1.22.19}
43
43
 
44
- docker build --build-arg YARN_VERSION=${YARN_VERSION} -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
44
+ # Use Docker buildx with cache if enabled via environment variables
45
+ if [ "$DOCKER_BUILD_CACHE_ENABLED" = "true" ]; then
46
+ echo "Docker cache is enabled, building using 'docker buildx build'"
47
+ echo "cache-from: $DOCKER_BUILDX_CACHE_FROM"
48
+ echo "cache-to: $DOCKER_BUILDX_CACHE_TO"
49
+ docker buildx build \
50
+ --cache-from "$DOCKER_BUILDX_CACHE_FROM" \
51
+ --cache-to "$DOCKER_BUILDX_CACHE_TO" \
52
+ --build-arg YARN_VERSION=${YARN_VERSION} \
53
+ -f $BASEDIR/env.Dockerfile \
54
+ -t ${TESTS_IMAGE} \
55
+ --load \
56
+ .
57
+ else
58
+ echo "Docker cache is disabled, building using 'docker build'"
59
+ docker build --build-arg YARN_VERSION=${YARN_VERSION} -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
60
+ fi
@@ -142,6 +142,6 @@ var copyNode = function (pathOrId, destParentPathOrId, destName, apolloOptions)
142
142
  pathOrId: pathOrId,
143
143
  destParentPathOrId: destParentPathOrId,
144
144
  destName: destName
145
- }, mutationFile: 'graphql/copyNode.graphql' }));
145
+ }, mutationFile: 'graphql/jcr/mutation/copyNode.graphql' }));
146
146
  };
147
147
  exports.copyNode = copyNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/cypress",
3
- "version": "7.2.0",
3
+ "version": "7.4.0",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "lint": "eslint src -c .eslintrc.json --ext .ts --max-warnings=0"
@@ -179,6 +179,6 @@ export const copyNode = (pathOrId: string, destParentPathOrId: string, destName?
179
179
  destParentPathOrId: destParentPathOrId,
180
180
  destName: destName
181
181
  },
182
- mutationFile: 'graphql/copyNode.graphql'
182
+ mutationFile: 'graphql/jcr/mutation/copyNode.graphql'
183
183
  });
184
184
  };