@jahia/cypress 3.23.0 → 3.25.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/env.provision.sh CHANGED
@@ -56,6 +56,8 @@ else
56
56
  curl ${MANIFEST} --output ./run-artifacts/curl-manifest
57
57
  MANIFEST="curl-manifest"
58
58
  fi
59
+ sed -i -e "s/NEXUS_USERNAME/$(echo ${NEXUS_USERNAME} | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/g" ./run-artifacts/${MANIFEST}
60
+ sed -i -e "s/NEXUS_PASSWORD/$(echo ${NEXUS_PASSWORD} | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/g" ./run-artifacts/${MANIFEST}
59
61
 
60
62
  echo "$(date +'%d %B %Y - %k:%M') == Executing manifest: ${MANIFEST} =="
61
63
  curl -u root:${SUPER_USER_PASSWORD} -X POST ${JAHIA_URL}/modules/api/provisioning --form script="@./run-artifacts/${MANIFEST};type=text/yaml" $(find assets -type f | sed -E 's/^(.+)$/--form file=\"@\1\"/' | xargs)
package/env.run.sh CHANGED
@@ -10,6 +10,11 @@ source $BASEDIR/set-env.sh
10
10
 
11
11
  echo "$(date +'%d %B %Y - %k:%M') == env.run.sh == Printing the most important environment variables"
12
12
  echo "$(date +'%d %B %Y - %k:%M') == NEXUS_USERNAME: ${NEXUS_USERNAME:0:3}***${NEXUS_USERNAME:(-6)}"
13
+ echo "$(date +'%d %B %Y - %k:%M') == DEBUG: ${DEBUG}"
14
+
15
+ if [[ "${DEBUG}" == "true" ]]; then
16
+ touch /tmp/debug
17
+ fi
13
18
 
14
19
  echo "$(date +'%d %B %Y - %k:%M') == Fetching the list of installed modules =="
15
20
  bash -c "unset npm_config_package; npx --yes @jahia/jahia-reporter@latest utils:modules \
@@ -49,10 +54,20 @@ if [[ $? -eq 0 ]]; then
49
54
  echo "$(date +'%d %B %Y - %k:%M') == Full execution successful =="
50
55
  echo "success" > ./results/test_success
51
56
  yarn report:merge; yarn report:html
52
- exit 0
53
57
  else
54
58
  echo "$(date +'%d %B %Y - %k:%M') == One or more failed tests =="
55
59
  echo "failure" > ./results/test_failure
56
60
  yarn report:merge; yarn report:html
61
+ fi
62
+
63
+ WAIT_DURATION=0
64
+ while [[ -e /tmp/debug ]]; do
65
+ echo "Debug file present - $(( ++ WAIT_DURATION ))s - waiting for file removal or expiration of GitHub Actions timeout..."
66
+ sleep 1;
67
+ done
68
+
69
+ if [[ -e ./results/test_success ]]; then
70
+ exit 0
71
+ else
57
72
  exit 1
58
73
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/cypress",
3
- "version": "3.23.0",
3
+ "version": "3.25.0",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "lint": "eslint src -c .eslintrc.json --ext .ts"