This commit is contained in:
2024-05-19 01:45:55 +03:00
parent 3c1c1ee58c
commit 9dade06d0a
+9 -4
View File
@@ -6,18 +6,24 @@ stages:
lint_frontend: lint_frontend:
stage: lint stage: lint
image: node:18 image: node:18.16.0
before_script:
- npm config set strict-ssl false
script: script:
- cd notes-app - cd notes-app
- npm cache clean --force
- npm ci - npm ci
- npm install eslint - npm install eslint
- npx eslint . - npx eslint .
lint_backend: lint_backend:
stage: lint stage: lint
image: node:18 image: node:18.16.0
before_script:
- npm config set strict-ssl false
script: script:
- cd notes-backend - cd notes-backend
- npm cache clean --force
- npm ci - npm ci
- npm install eslint - npm install eslint
- npx eslint . - npx eslint .
@@ -37,7 +43,6 @@ test-job2:
script: script:
- echo "This job tests something, but takes more time than test-job1." - echo "This job tests something, but takes more time than test-job1."
- echo "After the echo commands complete, it runs the sleep command for 20 seconds" - echo "After the echo commands complete, it runs the sleep command for 20 seconds"
- echo "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20 - sleep 20
deploy-prod: deploy-prod:
@@ -45,4 +50,4 @@ deploy-prod:
script: script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch." - echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
environment: production environment: production
: