2022-05-03 10:57:20 +00:00
|
|
|
---
|
|
|
|
################
|
|
|
|
# Build & Test #
|
|
|
|
################
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
name: test
|
|
|
|
|
|
|
|
steps:
|
2022-05-03 11:10:19 +00:00
|
|
|
- name: installgit p
|
2022-05-03 11:05:28 +00:00
|
|
|
image: node:16
|
2022-05-03 10:57:20 +00:00
|
|
|
commands:
|
|
|
|
- yarn install
|
|
|
|
- yarn test
|
|
|
|
- name: telgram_notify
|
|
|
|
image: appleboy/drone-telegram
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: telegram_token
|
2022-05-03 11:10:19 +00:00
|
|
|
to: -1001605162182
|
2022-05-03 10:57:20 +00:00
|
|
|
format: markdown
|
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
✅ `{{repo.name}}` #{{build.number}} 号构建测试已通过 .
|
|
|
|
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:
|
|
|
|
```
|
|
|
|
{{commit.message}}
|
|
|
|
```
|
|
|
|
🌐 {{ build.link }}
|
|
|
|
{{else}}
|
|
|
|
❌ `{{repo.name}}` #{{build.number}} 号构建测试已失败 .
|
|
|
|
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:
|
|
|
|
```
|
|
|
|
{{commit.message}}
|
|
|
|
```
|
|
|
|
🌐 {{ build.link }}
|
|
|
|
{{/success}}
|
2022-05-03 11:05:28 +00:00
|
|
|
|
2022-05-03 10:57:20 +00:00
|
|
|
|
|
|
|
|