lsp-yggdrasil/.drone.yml

55 lines
1.0 KiB
YAML
Raw Permalink Normal View History

---
################
# Build & Test #
################
kind: pipeline
name: test
platform:
os: linux
arch: arm64
services:
2022-05-13 07:28:13 +00:00
- name: setup-database
image: mongo:5
steps:
- name: test
2022-05-03 11:05:28 +00:00
image: node:16
commands:
- yarn install
- env CI=1 yarn test
- name: 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
format: markdown
message: >
{{#success build.status}}
2022-05-13 07:28:13 +00:00
✅ `{{repo.name}}` #{{build.number}} 号构建测试已通过
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:
```
{{commit.message}}
```
2022-05-13 07:28:13 +00:00
🌐 {{ build.link }}
{{else}}
2022-05-13 07:28:13 +00:00
❌ `{{repo.name}}` #{{build.number}} 号构建测试已失败
📝 {{commit.author}} 在 `{{commit.branch}}` 的提交:
```
{{commit.message}}
```
2022-05-13 07:28:13 +00:00
🌐 {{ build.link }}
{{/success}}