Files
web-core/.drone.yml
Beatrice Dellacà d7e144620e
All checks were successful
continuous-integration/drone/push Build is passing
add unit tests
2026-02-24 11:14:24 +01:00

59 lines
1.0 KiB
YAML

---
kind: pipeline
type: docker
name: web-core-ci
trigger:
branch:
- main
- develop
event:
- push
- pull_request
steps:
- name: install
image: node:25
commands:
- yarn install --frozen-lockfile
- name: lint
image: node:25
commands:
- yarn lint
- name: build
image: node:25
commands:
- yarn build
- name: unit-tests
image: node:25
environment:
NODE_OPTIONS: --no-webstorage
commands:
- yarn test:coverage
- test -f coverage/lcov.info
---
kind: pipeline
type: docker
name: web-core-publish
trigger:
event:
- tag
ref:
- refs/tags/v*
steps:
- name: publish-npm
image: node:25
environment:
NEXUS_NPM_TOKEN:
from_secret: nexus_npm_token
commands:
- yarn install --frozen-lockfile
- npm config set //nexus.beatrice.wtf/repository/npm-hosted/:_authToken "$NEXUS_NPM_TOKEN"
- yarn publish:nexus