Skip to content
Snippets Groups Projects
Commit f291b495 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

UPD: use pnpm for ci

parent 0bc310be
Branches
No related tags found
No related merge requests found
Pipeline #394643 failed
...@@ -25,7 +25,8 @@ before_script: ...@@ -25,7 +25,8 @@ before_script:
# - sed -i "s&__COMMIT_SHORT_SHA__&${CI_COMMIT_SHORT_SHA}&g" netvs.config.js # - sed -i "s&__COMMIT_SHORT_SHA__&${CI_COMMIT_SHORT_SHA}&g" netvs.config.js
# - sed -i "s&__JOB_ID__&${CI_JOB_ID}&g" public/version.json # - sed -i "s&__JOB_ID__&${CI_JOB_ID}&g" public/version.json
# - sed -i "s&__COMMIT_SHORT_SHA__&${CI_COMMIT_SHORT_SHA}&g" public/version.json # - sed -i "s&__COMMIT_SHORT_SHA__&${CI_COMMIT_SHORT_SHA}&g" public/version.json
- if [[ $CI_JOB_STAGE != "deploy" ]]; then npm ci --cache .npm_ci --prefer-offline; fi - if [[ $CI_JOB_STAGE != "deploy" ]]; then npm i @pnpm/exe; fi
- if [[ $CI_JOB_STAGE != "deploy" ]]; then ./node_modules/\@pnpm/linux-x64/pnpm ci --cache .npm_ci --prefer-offline; fi
- export NETDB_VERSION="4.1" - export NETDB_VERSION="4.1"
stages: stages:
- build - build
...@@ -39,7 +40,7 @@ frontend-build: ...@@ -39,7 +40,7 @@ frontend-build:
# TODO: # TODO:
# - python3 build_swagger.py # - python3 build_swagger.py
# - /venv/bin/net-api-generator es-webpack # - /venv/bin/net-api-generator es-webpack
- npm run build - ./node_modules/\@pnpm/linux-x64/pnpm run build
artifacts: artifacts:
expire_in: 7 days expire_in: 7 days
paths: paths:
...@@ -50,7 +51,7 @@ frontend-build: ...@@ -50,7 +51,7 @@ frontend-build:
frontend-lint: frontend-lint:
stage: lint stage: lint
script: script:
- npm run lint - ./node_modules/\@pnpm/linux-x64/pnpm run lint
allow_failure: true allow_failure: true
needs: [] needs: []
interruptible: true interruptible: true
...@@ -58,7 +59,7 @@ frontend-lint: ...@@ -58,7 +59,7 @@ frontend-lint:
frontend-audit: frontend-audit:
stage: lint stage: lint
script: script:
- npm audit --audit-level high - ./node_modules/\@pnpm/linux-x64/pnpm audit --audit-level high
allow_failure: true allow_failure: true
needs: [] needs: []
interruptible: true interruptible: true
...@@ -88,7 +89,7 @@ e2e_chrome: ...@@ -88,7 +89,7 @@ e2e_chrome:
- curl -s https://dl.google.com/linux/linux_signing_key.pub | apt-key add - - curl -s https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/chrome.list - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/chrome.list
- apt-get -y update && apt-get -y install google-chrome-stable - apt-get -y update && apt-get -y install google-chrome-stable
- npm run test:e2e --env chrome - ./node_modules/\@pnpm/linux-x64/pnpm run test:e2e --env chrome
needs: ["frontend-build"] needs: ["frontend-build"]
allow_failure: true allow_failure: true
artifacts: artifacts:
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment