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
754580c72e
commit
4496116b20
24
.github/workflows/openimci.yml
vendored
24
.github/workflows/openimci.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
|||||||
- name: OpenIM verify copyright
|
- name: OpenIM verify copyright
|
||||||
run: |
|
run: |
|
||||||
sudo make verify-copyright
|
sudo make verify-copyright
|
||||||
sudi make add-copyright
|
sudo make add-copyright
|
||||||
echo "OpenIM verify successfully"
|
echo "OpenIM verify successfully"
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
@ -115,11 +115,25 @@ jobs:
|
|||||||
# commit_author: Kubbot # defaults to author of the commit that triggered the run
|
# commit_author: Kubbot # defaults to author of the commit that triggered the run
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Set Current Directory
|
||||||
|
id: set_directory
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=directory::$(pwd)"
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Collect Test Coverage File
|
- name: Collect Test Coverage File
|
||||||
uses: actions/upload-artifact@v1.0.0
|
id: collect_coverage
|
||||||
with:
|
run: |
|
||||||
name: main-output
|
cd ${{ steps.set_directory.outputs.directory }}
|
||||||
path: _output/tmp/coverage.out
|
make cover
|
||||||
|
echo "::set-output name=coverage_file::./_output/tmp/coverage.out"
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Display Test Coverage
|
||||||
|
run: |
|
||||||
|
echo "Test Coverage:"
|
||||||
|
cat ${{ steps.collect_coverage.outputs.coverage_file }}
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user