Update .gitlab-ci.yml file
This commit is contained in:
@@ -1,26 +1,47 @@
|
||||
image: node:latest
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- build
|
||||
- test
|
||||
|
||||
merge:build:
|
||||
stage: build
|
||||
script:
|
||||
- echo "Run build project"
|
||||
- npm install
|
||||
- npm run build
|
||||
only:
|
||||
- merge_requests
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules
|
||||
|
||||
merge:test:
|
||||
stage: test
|
||||
script:
|
||||
- echo "Run test project"
|
||||
- npm run test
|
||||
only:
|
||||
- merge_requests
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- npm install
|
||||
- npm run build
|
||||
only:
|
||||
- merge_requests
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules
|
||||
stage: build
|
||||
script:
|
||||
- echo "Run build project"
|
||||
- npm install
|
||||
- npm run build
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- npm run test
|
||||
only:
|
||||
- merge_requests
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules
|
||||
stage: test
|
||||
script:
|
||||
- echo "Run test project"
|
||||
- npm run test
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules
|
||||
Reference in New Issue
Block a user