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
|
2021-02-23 05:40:02 +00:00
|
|
|
image: cypress/base:14.15.4
|
2020-11-27 03:02:54 +00:00
|
|
|
|
|
|
|
pipelines:
|
|
|
|
default:
|
|
|
|
- parallel:
|
|
|
|
- step:
|
2021-02-23 05:40:02 +00:00
|
|
|
name: Build and test
|
2020-11-27 03:02:54 +00:00
|
|
|
caches:
|
|
|
|
- node
|
2021-02-23 05:40:02 +00:00
|
|
|
- npm
|
|
|
|
- cypress
|
2020-11-27 03:02:54 +00:00
|
|
|
script:
|
2021-02-15 15:50:52 -08:00
|
|
|
- yarn install
|
2021-02-03 10:13:12 -08:00
|
|
|
- yarn build
|
2021-02-16 23:03:06 -05:00
|
|
|
- yarn lint
|
2021-02-23 05:40:02 +00:00
|
|
|
- yarn test
|
|
|
|
definitions:
|
|
|
|
caches:
|
|
|
|
npm: $HOME/.npm
|
|
|
|
cypress: $HOME/.cache/Cypress
|