34 lines
401 B
YAML
34 lines
401 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
workspace:
|
|
path: /drone/grow
|
|
|
|
steps:
|
|
- name: Install
|
|
image: node:latest
|
|
commands:
|
|
- yarn install
|
|
|
|
- name: Check Code Style
|
|
image: node:latest
|
|
commands:
|
|
- yarn prettier
|
|
|
|
- name: Lint Code
|
|
image: node:latest
|
|
commands:
|
|
- yarn lint
|
|
|
|
- name: Build
|
|
image: node:latest
|
|
commands:
|
|
- yarn build
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|