|
|
|
@ -3,23 +3,17 @@ type: docker
@@ -3,23 +3,17 @@ type: docker
|
|
|
|
|
name: default |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- name: init |
|
|
|
|
image: node:16-alpine |
|
|
|
|
commands: |
|
|
|
|
- "npm install" |
|
|
|
|
- name: start |
|
|
|
|
image: node:16-alpine |
|
|
|
|
commands: |
|
|
|
|
- "npm run build" |
|
|
|
|
- "npm test -- --watchAll=false" |
|
|
|
|
- "npm test -- --watchAll=false" |
|
|
|
|
# - name: init |
|
|
|
|
# image: node:16-alpine |
|
|
|
|
# commands: |
|
|
|
|
# - "npm install" |
|
|
|
|
# - name: start |
|
|
|
|
# image: node:16-alpine |
|
|
|
|
# commands: |
|
|
|
|
# - "npm test -- --watchAll=false" |
|
|
|
|
# - "npm test -- --watchAll=false" |
|
|
|
|
- name: notify |
|
|
|
|
image: pelotech/drone-google-chat |
|
|
|
|
settings: |
|
|
|
|
webook: |
|
|
|
|
from_secret: GCHAT_WH |
|
|
|
|
key: |
|
|
|
|
from_secret: GCHAT_KEY |
|
|
|
|
token: |
|
|
|
|
from_secret: GCHAT_TOKEN |
|
|
|
|
template: "Drone: Build ran :rasing-hands:" |
|
|
|
|