Update .gitlab-ci.yml file

This commit is contained in:
AmirHossein Mahmoodi
2023-10-15 08:12:14 +00:00
parent 9c10d5b249
commit 2a2be7615c

View File

@@ -3,6 +3,7 @@ image: node:latest
stages:
- build
- test
- deploy
merge:build:
stage: build
@@ -33,6 +34,9 @@ build:
- echo "Run build project"
- npm install
- npm run build
only:
- develop
- main
artifacts:
paths:
- node_modules
@@ -42,6 +46,16 @@ test:
script:
- echo "Run test project"
- npm run test
only:
- develop
- main
artifacts:
paths:
- node_modules
- node_modules
deploy:
stage: deploy
script:
- echo "Run deploy project"
only:
- main