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:
stage: lint
image: node:18
image: node:18.16.0
before_script:
- npm config set strict-ssl false
script:
- cd notes-app
- npm cache clean --force
- npm ci
- npm install eslint
- npx eslint .
lint_backend:
stage: lint
image: node:18
image: node:18.16.0
before_script:
- npm config set strict-ssl false
script:
- cd notes-backend
- npm cache clean --force
- npm ci
- npm install eslint
- npx eslint .
@@ -37,7 +43,6 @@ test-job2:
script:
- 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 "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20
deploy-prod:
@@ -45,4 +50,4 @@ deploy-prod:
script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
environment: production
: