|
|
|
@ -60,6 +60,12 @@ jobs:
|
|
|
|
|
echo "Run go format successfully"
|
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
- name: Run go lint
|
|
|
|
|
run: |
|
|
|
|
|
sudo make lint
|
|
|
|
|
echo "Run go lint successfully"
|
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
- name: Generate all necessary files, such as error code files
|
|
|
|
|
run: |
|
|
|
|
|
make generate
|
|
|
|
@ -72,18 +78,13 @@ jobs:
|
|
|
|
|
echo "Run unit test and get test coverage successfully"
|
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
|
with:
|
|
|
|
|
languages: go
|
|
|
|
|
|
|
|
|
|
- name: Build source code for host platform
|
|
|
|
|
run: |
|
|
|
|
|
sudo make build
|
|
|
|
|
echo "Build source code for host platform successfully"
|
|
|
|
|
# - name: Initialize CodeQL
|
|
|
|
|
# uses: github/codeql-action/init@v2
|
|
|
|
|
# with:
|
|
|
|
|
# languages: go
|
|
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
|
uses: github/codeql-action/analyze@v2
|
|
|
|
|
# - name: Perform CodeQL Analysis
|
|
|
|
|
# uses: github/codeql-action/analyze@v2
|
|
|
|
|
|
|
|
|
|
- name: OpenIM verify copyright
|
|
|
|
|
run: |
|
|
|
|
@ -100,21 +101,21 @@ jobs:
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
|
uses: peter-evans/create-pull-request@v5
|
|
|
|
|
with:
|
|
|
|
|
token: ${{ secrets.REDBOT_GITHUB_TOKEN }}
|
|
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
|
commit-message: "cicd: bump League Patch to cicd/patch-${{ github.event.number }}"
|
|
|
|
|
title: Bump League Patch to cicd/patch-${{ github.event.number }}
|
|
|
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
|
|
|
|
author: kubbot <kubbot@3293172751ysy@gmail.com>
|
|
|
|
|
signoff: false
|
|
|
|
|
draft: false
|
|
|
|
|
# assignees: ${{ github.actor }}
|
|
|
|
|
# reviewers: ${{ github.actor }}
|
|
|
|
|
assignees: cubxxw
|
|
|
|
|
reviewers: cubxxw
|
|
|
|
|
delete-branch: true
|
|
|
|
|
body: |
|
|
|
|
|
Review criteria:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- [ ] Disenchanter can connect and issue actions
|
|
|
|
|
|
|
|
|
|
This is an automated PR.
|
|
|
|
|
This is an automated PR. @ ${{ github.actor }}
|
|
|
|
|
<sub>[workflow](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/.github/workflows/pull-request.yml).</sub>
|
|
|
|
|
base: main
|
|
|
|
|
branch: cicd/patch-${{ github.event.number }}
|
|
|
|
|