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
type: docker
name: test
name: Test Pipeline
workspace:
path: /drone/grow
steps:
- name: yarn install
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
pipeline:
notify:
image: plugins/webhook
settings:
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
@@ -38,7 +18,29 @@ steps:
"username":"DroneBot"
}
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:
event:
- push
@@ -46,18 +48,13 @@ trigger:
---
kind: pipeline
type: docker
name: build
name: Build Pipeline
workspace:
path: /drone/grow
steps:
- name: build
image: node:latest
commands:
- yarn build
- name: send-build-results
pipeline:
notify:
image: plugins/webhook
settings:
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
@@ -69,10 +66,16 @@ steps:
"username":"DroneBot"
}
trigger:
event: [success, failure]
event: [ success, failure ]
steps:
- name: Build
image: node:latest
commands:
- yarn build
depends_on:
- test
- Test Pipeline
trigger:
branch: