Newer
Older
cache:
paths:
- ~/.cache
stage: lint
allow_failure: true
before_script:
- apk add --no-cache npm
script:
- echo "${CI_COMMIT_MESSAGE}" | npx commitlint
linter:
image: node:16.16.0-alpine
before_script:
- apk add --no-cache npm
- npm ci
script:
- npm run lint:ts
only:
- development
- merge_requests
- tags
prettier:
image: node:16.16.0-alpine
stage: prettier
before_script:
- apk add --no-cache npm
- npm ci
script:
- npm run prettier:ci
only:
- development
- merge_requests
- tags

Tadeusz Miesiąc
committed
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/

Tadeusz Miesiąc
committed
artifacts:
when: always
reports:
junit:
- junit.xml
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
deploy_staging:
image: node:16.16.0
stage: deploy
only:
- development
script:
- npm install --global vercel
- vercel pull --yes --environment=production --token=$VERCEL_TOKEN
- vercel build --prod --token=$VERCEL_TOKEN
- vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN