mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 03:07:57 +01:00
25 lines
556 B
YAML
25 lines
556 B
YAML
|
# Template NodeJS build
|
||
|
|
||
|
# This template allows you to validate your NodeJS code.
|
||
|
# The workflow allows running tests and code linting on the default branch.
|
||
|
|
||
|
image: node:10.15.3
|
||
|
|
||
|
pipelines:
|
||
|
default:
|
||
|
- parallel:
|
||
|
- step:
|
||
|
name: Build and Test
|
||
|
caches:
|
||
|
- node
|
||
|
script:
|
||
|
- npm install
|
||
|
- npm test
|
||
|
- step:
|
||
|
name: Code linting
|
||
|
script:
|
||
|
- npm install eslint
|
||
|
- npx eslint .
|
||
|
caches:
|
||
|
- node
|