money-control-frontend/.gitlab-ci.yml

43 lines
520 B
YAML

image: node:20.11.1-alpine
stages:
- preparing
- checking
- deploy
cache:
paths:
- node_modules/
install-dependencies:
stage: preparing
script:
- yarn install --offline
lint:
stage: checking
script:
- yarn run lint
only:
- branches
- merge_requests
- tags
test:
stage: checking
script:
- yarn run test
only:
- merge_requests
pages:
stage: deploy
script:
- yarn run build:prod
artifacts:
paths:
- build
publish: build
only:
- main