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

54 lines
668 B
YAML

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