添加更多配置文件设置,实现了一个api,完成部分文件的部分测试
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
44
.drone.yml
Normal file
44
.drone.yml
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
################
|
||||
# Build & Test #
|
||||
################
|
||||
|
||||
kind: pipeline
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: install
|
||||
image: node16-alpine
|
||||
commands:
|
||||
- yarn install
|
||||
- yarn test
|
||||
- name: telgram_notify
|
||||
image: appleboy/drone-telegram
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
settings:
|
||||
token:
|
||||
from_secret: telegram_token
|
||||
to:
|
||||
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}}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user