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