mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-12 16:44:30 +08:00
feat: test file
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
5bead912fa
commit
d80f8ede64
80
.github/workflows/openim-ci.yml
vendored
80
.github/workflows/openim-ci.yml
vendored
@ -81,16 +81,16 @@ jobs:
|
||||
|
||||
- name: Build source code for host platform
|
||||
run: |
|
||||
make -j build # skip build for now
|
||||
make build # skip build for now
|
||||
|
||||
- name: Collect Test Coverage File
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: main-output
|
||||
path: _output/tmp/coverage.out
|
||||
# - 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
|
||||
# - name: Set up Docker Buildx
|
||||
# uses: docker/setup-buildx-action@v1
|
||||
|
||||
# lint:
|
||||
# runs-on: ubuntu-20.04
|
||||
@ -110,41 +110,41 @@ jobs:
|
||||
# with:
|
||||
# version: ${{ env.GOLANGCI_VERSION }}
|
||||
|
||||
docker-image-tests:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# docker-image-tests:
|
||||
# runs-on: ubuntu-20.04
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
# - name: Set up Go
|
||||
# uses: actions/setup-go@v3
|
||||
# with:
|
||||
# go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- name: Run tests
|
||||
run: make build
|
||||
# - name: Run tests
|
||||
# run: make build
|
||||
|
||||
- name: Test docker image
|
||||
run: |
|
||||
docker build -t openim:ci-build .
|
||||
# - name: Test docker image
|
||||
# run: |
|
||||
# docker build -t openim:ci-build .
|
||||
|
||||
goreleaser-test:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# goreleaser-test:
|
||||
# runs-on: ubuntu-20.04
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
# - name: Set up Go
|
||||
# uses: actions/setup-go@v3
|
||||
# with:
|
||||
# go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
version: latest
|
||||
args: release --clean --skip-publish --snapshot
|
||||
# - name: Run GoReleaser
|
||||
# uses: goreleaser/goreleaser-action@v4
|
||||
# with:
|
||||
# version: latest
|
||||
# args: release --clean --skip-publish --snapshot
|
||||
Loading…
x
Reference in New Issue
Block a user