@amanat-qa/utils-frontend 5.2.5 → 5.2.6

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.
@@ -35,8 +35,8 @@ var jobs = testSuites.map(function (suite) {
35
35
  tags: ['k8s'],
36
36
  before_script: [
37
37
  // eslint-disable-next-line no-template-curly-in-string
38
- 'echo "${ENV_TEST}" | tr -d \'\\r\' > ./.env.test', 'docker login --username $USER --password $PASS registry.gitlab.com', projectName === 'amanat24' ? 'echo "Не обращайте на эту строку внимания"' : 'service docker start', 'npm ci --prefix ./cypress', 'npm install @amanat-qa/utils-frontend@latest --prefix ./cypress --no-save', 'npm run lint --prefix ./cypress', "TARGET_REPO=\"https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/amanatpolicy/amanat-digital-platform/adp_nuxt.git\"\nFULL_SHA=$(git ls-remote $TARGET_REPO dev | awk '{print $1}')\nLATEST_COMMIT=${FULL_SHA:0:8}\necho \"Using commit: $LATEST_COMMIT\"\nexport LATEST_COMMIT=$LATEST_COMMIT", 'echo "registry.gitlab.com/amanatpolicy/amanat-digital-platform/adp_nuxt/$CI_COMMIT_REF_NAME:$LATEST_COMMIT"'],
39
- script: ["export LATEST_COMMIT=$(git ls-remote https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/amanatpolicy/amanat-digital-platform/adp_nuxt.git $CI_COMMIT_REF_NAME | awk '{print $1}' | cut -c1-8) && npm run start:ci --prefix ./cypress", "file=".concat(suite, " npm run test --prefix ./cypress")],
38
+ 'echo "${ENV_TEST}" | tr -d \'\\r\' > ./.env.test', 'docker login --username $USER --password $PASS registry.gitlab.com', projectName === 'amanat24' ? 'echo "Не обращайте на эту строку внимания"' : 'service docker start', 'npm ci --prefix ./cypress', 'npm install @amanat-qa/utils-frontend@latest --prefix ./cypress --no-save', 'npm run lint --prefix ./cypress', "FULL_SHA=$(curl --silent --fail --header \"PRIVATE-TOKEN: $TOKEN\" \"https://gitlab.com/api/v4/projects/35662475/repository/commits?ref_name=$CI_COMMIT_REF_NAME\" | jq -r '.[0].id')\n \n if [ -z \"$FULL_SHA\" ] || [ \"$FULL_SHA\" == \"null\" ]; then\n echo \"ERROR: Could not fetch SHA from API. Check branch name or TOKEN permissions.\"\n exit 1\n fi\n\n export LATEST_COMMIT=${FULL_SHA:0:8}\n echo \"Successfully fetched LATEST_COMMIT: $LATEST_COMMIT\"", 'echo "registry.gitlab.com/amanatpolicy/amanat-digital-platform/adp_nuxt/$CI_COMMIT_REF_NAME:$LATEST_COMMIT"'],
39
+ script: ["npm run start:ci --prefix ./cypress", "file=".concat(suite, " npm run test --prefix ./cypress")],
40
40
  artifacts: {
41
41
  when: 'always',
42
42
  expire_in: '1 month',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amanat-qa/utils-frontend",
3
- "version": "5.2.5",
3
+ "version": "5.2.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },