2020-11-27 03:02:54 +00: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-16 23:01:33 -05:00
|
|
|
# Node LTS
|
2022-10-31 15:47:00 -07:00
|
|
|
image: cypress/included:10.11.0
|
2020-11-27 03:02:54 +00:00
|
|
|
|
|
|
|
pipelines:
|
2022-01-24 00:42:54 +00:00
|
|
|
branches:
|
2022-01-23 16:25:43 -08:00
|
|
|
'{master,develop}':
|
|
|
|
- step:
|
|
|
|
name: Build and test
|
|
|
|
caches:
|
|
|
|
- node
|
|
|
|
- npm
|
|
|
|
- cypress
|
|
|
|
script:
|
|
|
|
- export CYPRESS_imageSnaphots="true"
|
2022-01-30 16:10:00 -08:00
|
|
|
- yarn install
|
2022-01-23 16:25:43 -08:00
|
|
|
- yarn bootstrap
|
|
|
|
- yarn build
|
2022-01-30 11:58:56 -08:00
|
|
|
- yarn lint
|
2022-11-01 16:31:33 -07:00
|
|
|
- yarn test:unit
|
2022-02-14 17:42:16 -08:00
|
|
|
# - yarn test
|
2022-01-23 16:25:43 -08:00
|
|
|
artifacts:
|
|
|
|
- packages/**/cypress/snapshots/**/__diff_output__/*.diff.png
|
2021-02-23 05:40:02 +00:00
|
|
|
definitions:
|
|
|
|
caches:
|
|
|
|
npm: $HOME/.npm
|
2022-01-26 19:25:11 +00:00
|
|
|
cypress: $HOME/.cache/Cypress
|