mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-11 06:56:59 +08:00
feat: add more cicd auto
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
4783021c15
commit
bb473e96b3
53
.github/workflows/openimci.yml
vendored
53
.github/workflows/openimci.yml
vendored
@ -56,7 +56,9 @@ jobs:
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||
|
||||
- name: Run go modules tidy
|
||||
run: |
|
||||
@ -68,27 +70,50 @@ jobs:
|
||||
echo "Run go format successfully"
|
||||
continue-on-error: true
|
||||
|
||||
# - name: Generate all necessary files, such as error code files
|
||||
# run: |
|
||||
# make generate
|
||||
- name: Generate all necessary files, such as error code files
|
||||
run: |
|
||||
make generate
|
||||
continue-on-error: true
|
||||
|
||||
# - name: Run unit test and get test coverage
|
||||
# run: |
|
||||
# make cover
|
||||
- name: Run unit test and get test coverage
|
||||
run: |
|
||||
make cover
|
||||
continue-on-error: true
|
||||
|
||||
- name: Build source code for host platform
|
||||
run: |
|
||||
sudo make build
|
||||
echo "Build source code for host platform successfully"
|
||||
|
||||
# - name: Collect Test Coverage File
|
||||
# uses: actions/upload-artifact@v1.0.0
|
||||
# with:
|
||||
# name: main-output
|
||||
# path: _output/tmp/coverage.out
|
||||
- name: OpenIM verify copyright
|
||||
run: |
|
||||
sudo make verify-copyright
|
||||
echo "OpenIM verify successfully"
|
||||
|
||||
# - name: Set up Docker Buildx
|
||||
# uses: docker/setup-buildx-action@v1
|
||||
- name: Clean all build
|
||||
run: |
|
||||
sudo make clean
|
||||
echo "Clean all build successfully"
|
||||
|
||||
- name: push OpenIM
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Automated Change
|
||||
commit_options: '--no-verify --signoff'
|
||||
# Optional commit user and author settings
|
||||
commit_user_name: kubbot # defaults to "github-actions[bot]"
|
||||
commit_user_email: 3293172751ysy@gmail.com # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
commit_author: Kubbot # defaults to author of the commit that triggered the run
|
||||
|
||||
- name: Collect Test Coverage File
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: main-output
|
||||
path: _output/tmp/coverage.out
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
continue-on-error: true
|
||||
|
||||
openim-start:
|
||||
name: Teat OpenIM make install start on ${{ matrix.os }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user