github.com/HXSecurity/DongTai-agent-go@v0.4.2/.github/workflows/run-unittest.yml (about)

     1  name: Run UnitTest
     2  
     3  on:
     4    pull_request:
     5      paths-ignore:
     6        - '.github/**'
     7        - 'changes/**'
     8        - 'deploy/**'
     9        - '**.md'
    10        - '**.yml'
    11        - '**.xml'
    12        - 'LICENSE'
    13        - '.gitignore'
    14  
    15  jobs:
    16    Run-Go-CI:
    17      name: Run Go Agent CI
    18      runs-on: ubuntu-latest
    19      if: github.event_name == 'push'
    20      steps:
    21        - uses: joelwmale/webhook-action@master
    22          with:
    23            url: ${{ secrets.DONGTAI_WEBHOOK_URL }}
    24            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"}}]}}'
    25  
    26    Test-Agent:
    27      name: Update this repo's README
    28      runs-on: ubuntu-latest
    29      strategy:
    30        matrix:
    31          go: [ '1.17', '1.16' ]
    32      steps:
    33        - uses: actions/checkout@v2
    34        - uses: actions/setup-go@v2
    35          with:
    36            go-version: ${{ matrix.go }} # T
    37  
    38        - run: bash .github/workflows/scripts/run-govwa.sh
    39  
    40    Finish-Go-CI:
    41      name: Finish Go CI
    42      runs-on: ubuntu-latest
    43      if: github.event_name == 'push'
    44      needs:
    45        - Test-Agent
    46      steps:
    47        - uses: joelwmale/webhook-action@master
    48          with:
    49            url: ${{ secrets.DONGTAI_WEBHOOK_URL }}
    50            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"}}]}}'
    51