-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (45 loc) · 1.84 KB
/
run-unittest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Run UnitTest
on:
pull_request:
paths-ignore:
- '.github/**'
- 'changes/**'
- 'deploy/**'
- '**.md'
- '**.yml'
- '**.xml'
- 'LICENSE'
- '.gitignore'
jobs:
Run-Go-CI:
name: Run Go Agent CI
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.DONGTAI_WEBHOOK_URL }}
body: '{"msg_type": "interactive","card": {"config": {"wide_screen_mode": true,"enable_forward": true},"elements": [{"tag": "div","text": {"content": "状态:项目${{github.repository}}构建开始\n分支:${{github.ref}}\n流程:${{github.workflow}}\n构建编号:${{github.run_number}}\n触发事件:${{github.event_name}}\n提交人:${{github.actor}}\nSHA-1:${{github.sha}}\n","tag": "lark_md"}}]}}'
Test-Agent:
name: Update this repo's README
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.17', '1.16' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }} # T
- run: bash .github/workflows/scripts/run-govwa.sh
Finish-Go-CI:
name: Finish Go CI
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs:
- Test-Agent
steps:
- uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.DONGTAI_WEBHOOK_URL }}
body: '{"msg_type": "interactive","card": {"config": {"wide_screen_mode": true,"enable_forward": true},"elements": [{"tag": "div","text": {"content": "状态:项目${{github.repository}}构建开始\n分支:${{github.ref}}\n流程:${{github.workflow}}\n构建编号:${{github.run_number}}\n触发事件:${{github.event_name}}\n提交人:${{github.actor}}\nSHA-1:${{github.sha}}\n","tag": "lark_md"}}]}}'