mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-09 13:36:57 +08:00
feat: add test file
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
c803a06eb3
commit
754580c72e
71
.github/workflows/openimci.yml
vendored
71
.github/workflows/openimci.yml
vendored
@ -103,17 +103,17 @@ jobs:
|
|||||||
echo "Clean all build successfully"
|
echo "Clean all build successfully"
|
||||||
|
|
||||||
- name: push OpenIM
|
- name: push OpenIM
|
||||||
run: |
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
date > generated.txt
|
with:
|
||||||
git remote -v
|
commit_message: "cicd: robot automated Change"
|
||||||
git status
|
# commit_options: '--no-verify --signoff'
|
||||||
git branch -a
|
branch: main
|
||||||
echo "===> git config user.name kubbot"
|
# create_branch: true
|
||||||
git config user.name kubbot
|
# # Optional commit user and author settings
|
||||||
git config user.email 3293172751ysy@gmail.com
|
# commit_user_name: kubbot # defaults to "github-actions[bot]"
|
||||||
git add .
|
# commit_user_email: 3293172751ysy@gmail.com # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git commit -m "cicd: make cicd all test push"
|
# commit_author: Kubbot # defaults to author of the commit that triggered the run
|
||||||
git push
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Collect Test Coverage File
|
- name: Collect Test Coverage File
|
||||||
uses: actions/upload-artifact@v1.0.0
|
uses: actions/upload-artifact@v1.0.0
|
||||||
@ -126,31 +126,24 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
openim-start:
|
openim-start:
|
||||||
name: Test OpenIM make install start on ${{ matrix.os }}
|
name: Teat OpenIM make install start on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
environment:
|
environment:
|
||||||
name: openim
|
name: openim
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go_version: ["1.20"]
|
go_version: ["1.20"]
|
||||||
os: ["ubuntu-latest"]
|
os: ["ubuntu-latest"]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go ${{ matrix.go_version }}
|
- name: Set up Go ${{ matrix.go_version }}
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go_version }}
|
go-version: ${{ matrix.go_version }}
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Run OpenIM make install start
|
- name: Run OpenIM make install start
|
||||||
run: |
|
run: |
|
||||||
sudo make install
|
sudo make install
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Upload Logs
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: OpenIM Logs
|
|
||||||
path: /home/runner/work/Open-IM-Server/Open-IM-Server/logs/openIM.log
|
|
||||||
Loading…
x
Reference in New Issue
Block a user