Update .gitlab-ci.yml file
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user