kind: pipeline type: docker name: Test Pipeline workspace: path: /drone/grow pipeline: notify: image: plugins/webhook settings: urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r content_type: application/json template: | { "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", "text": "[{{ repo.name }}] Code Quality Checks {{ build.status }} :tada:", "username":"DroneBot" } trigger: 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 --- kind: pipeline type: docker name: Build Pipeline workspace: path: /drone/grow pipeline: notify: image: plugins/webhook settings: urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r content_type: application/json template: | { "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", "text": "[{{ repo.name }}] Build {{ build.status }} :tada:", "username":"DroneBot" } trigger: event: [ success, failure ] steps: - name: Build image: node:latest commands: - yarn build depends_on: - Test Pipeline trigger: branch: - main event: - push