I think I now get the pipeline concept
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-02 19:16:42 -04:00
parent add0b91fdd
commit 9c06dbed5b

View File

@@ -1,32 +1,12 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: test name: Test Pipeline
workspace: workspace:
path: /drone/grow path: /drone/grow
steps: pipeline:
- name: yarn install notify:
image: node:latest
commands:
- yarn install
- name: prettier
image: node:latest
commands:
- yarn prettier
- name: eslint
image: node:latest
commands:
- yarn lint
- name: test
image: node:latest
commands:
- yarn test
- name: send-test-results
image: plugins/webhook image: plugins/webhook
settings: settings:
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
@@ -39,6 +19,28 @@ steps:
} }
trigger: trigger:
event: [ success, failure ] event: [ success, failure ]
steps:
- name: yarn install
image: node:latest
commands:
- yarn install
- name: Code Style Checks
image: node:latest
commands:
- yarn prettier
- name: Lint
image: node:latest
commands:
- yarn lint
- name: Unit Tests
image: node:latest
commands:
- yarn test
trigger: trigger:
event: event:
- push - push
@@ -46,18 +48,13 @@ trigger:
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: build name: Build Pipeline
workspace: workspace:
path: /drone/grow path: /drone/grow
steps: pipeline:
- name: build notify:
image: node:latest
commands:
- yarn build
- name: send-build-results
image: plugins/webhook image: plugins/webhook
settings: settings:
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
@@ -71,8 +68,14 @@ steps:
trigger: trigger:
event: [ success, failure ] event: [ success, failure ]
steps:
- name: Build
image: node:latest
commands:
- yarn build
depends_on: depends_on:
- test - Test Pipeline
trigger: trigger:
branch: branch: