Update .gitlab-ci.yml file

This commit is contained in:
AmirHossein Mahmoodi
2023-10-15 11:18:14 +03:30
parent 4cabe9d171
commit df947537e4

View File

@@ -1,24 +1,26 @@
image: node:latest
stages:
- build
- test
before_script:
- npm install
- build
- test
build:
stage: build
script:
- echo "Run build project"
- npm run build
only:
- merge_requests
stage: build
script:
- npm install
- npm run build
only:
- merge_requests
artifacts:
paths:
- node_modules
test:
stage: test
script:
- echo "Run test project"
- npm run test
only:
- merge_requests
stage: test
script:
- npm run test
only:
- merge_requests
artifacts:
paths:
- node_modules