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
|
2022-10-31 23:47:00 +01:00
|
|
|
image: cypress/included:10.11.0
|
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"
|
2022-01-31 01:10:00 +01:00
|
|
|
- yarn install
|
2022-01-24 01:25:43 +01:00
|
|
|
- yarn bootstrap
|
|
|
|
- yarn build
|
2022-01-30 20:58:56 +01:00
|
|
|
- yarn lint
|
2022-04-12 13:49:03 +02:00
|
|
|
- yarn test:unit
|
2022-02-15 02:42:16 +01:00
|
|
|
# - yarn test
|
2022-01-24 01:25:43 +01:00
|
|
|
artifacts:
|
|
|
|
- packages/**/cypress/snapshots/**/__diff_output__/*.diff.png
|
2021-02-23 06:40:02 +01:00
|
|
|
definitions:
|
|
|
|
caches:
|
|
|
|
npm: $HOME/.npm
|
2022-01-26 20:25:11 +01:00
|
|
|
cypress: $HOME/.cache/Cypress
|