@amanat-qa/utils-frontend 5.2.6 → 5.2.8

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,10 @@ 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', "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")],
38
+ 'echo "${ENV_TEST}" | tr -d \'\\r\' > ./.env.test', 'apt-get update && apt-get install -y jq', 'docker login --username $USER --password $PASS registry.gitlab.com'].concat(_toConsumableArray(projectName !== 'amanat24' ? ['service docker start'] : []), ['npm ci --prefix ./cypress', 'npm install @amanat-qa/utils-frontend@latest --prefix ./cypress --no-save', 'npm run lint --prefix ./cypress',
39
+ // eslint-disable-next-line no-template-curly-in-string
40
+ 'REPO_NAME="${CI_PROJECT_NAME%_*}" && PROJECT_ID=$(curl --silent --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects?search=$REPO_NAME" | jq -r ".[] | select(.path == \\"$REPO_NAME\\") | .id") && if [ -z "$PROJECT_ID" ]; then echo "Project $REPO_NAME not found"; exit 1; fi && FULL_SHA=$(curl --silent --fail --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects/$PROJECT_ID/repository/commits?ref_name=$CI_COMMIT_REF_NAME" | jq -r ".[0].id") && export LATEST_COMMIT="${FULL_SHA:0:8}" && echo "Run tests on image from project $REPO_NAME with branch $CI_COMMIT_REF_NAME and commit $LATEST_COMMIT"']),
41
+ script: ['npm run start:ci --prefix ./cypress', "file=".concat(suite, " npm run test --prefix ./cypress")],
40
42
  artifacts: {
41
43
  when: 'always',
42
44
  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.6",
3
+ "version": "5.2.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },