mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-24 15:37:55 +01:00
31 lines
746 B
YAML
31 lines
746 B
YAML
# Template NodeJS build
|
|
|
|
# This template allows you to validate your NodeJS code.
|
|
# The workflow allows running tests and code linting on the default branch.
|
|
|
|
# Node LTS
|
|
image: cypress/included:10.11.0
|
|
|
|
pipelines:
|
|
branches:
|
|
'{master,develop}':
|
|
- step:
|
|
name: Build and test
|
|
caches:
|
|
- node
|
|
- npm
|
|
- cypress
|
|
script:
|
|
- export CYPRESS_imageSnaphots="true"
|
|
- yarn install
|
|
- yarn build
|
|
- yarn lint
|
|
- yarn test:unit
|
|
# - yarn test
|
|
artifacts:
|
|
- packages/**/cypress/snapshots/**/__diff_output__/*.diff.png
|
|
definitions:
|
|
caches:
|
|
npm: $HOME/.npm
|
|
cypress: $HOME/.cache/Cypress
|