2020-11-27 04:02:54 +01:00
|
|
|
# Template NodeJS build
|
|
|
|
|
|
|
|
# This template allows you to validate your NodeJS code.
|
|
|
|
# The workflow allows running tests and code linting on the default branch.
|
|
|
|
|
2021-02-17 05:01:33 +01:00
|
|
|
# Node LTS
|
2021-12-17 03:13:54 +01:00
|
|
|
image: cypress/included:8.4.1
|
2020-11-27 04:02:54 +01:00
|
|
|
|
|
|
|
pipelines:
|
2022-01-24 01:42:54 +01:00
|
|
|
branches:
|
2022-01-24 01:25:43 +01:00
|
|
|
'{master,develop}':
|
|
|
|
- step:
|
|
|
|
name: Build and test
|
|
|
|
caches:
|
|
|
|
- node
|
|
|
|
- npm
|
|
|
|
- cypress
|
|
|
|
script:
|
|
|
|
- export CYPRESS_imageSnaphots="true"
|
|
|
|
- yarn bootstrap
|
|
|
|
- yarn build
|
|
|
|
- yarn lint
|
|
|
|
- yarn test
|
|
|
|
artifacts:
|
|
|
|
- packages/**/cypress/snapshots/**/__diff_output__/*.diff.png
|
2021-02-23 06:40:02 +01:00
|
|
|
definitions:
|
|
|
|
caches:
|
|
|
|
npm: $HOME/.npm
|
2022-01-25 15:36:12 +01:00
|
|
|
cypress: $HOME/.cache/Cypress
|