feat: test file

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/497/head
Xinwei Xiong(cubxxw-openim) 2 years ago
parent 5bead912fa
commit d80f8ede64

@ -81,16 +81,16 @@ jobs:
- name: Build source code for host platform - name: Build source code for host platform
run: | run: |
make -j build # skip build for now make build # skip build for now
- name: Collect Test Coverage File # - name: Collect Test Coverage File
uses: actions/upload-artifact@v1.0.0 # uses: actions/upload-artifact@v1.0.0
with: # with:
name: main-output # name: main-output
path: _output/tmp/coverage.out # path: _output/tmp/coverage.out
- name: Set up Docker Buildx # - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 # uses: docker/setup-buildx-action@v1
# lint: # lint:
# runs-on: ubuntu-20.04 # runs-on: ubuntu-20.04
@ -110,41 +110,41 @@ jobs:
# with: # with:
# version: ${{ env.GOLANGCI_VERSION }} # version: ${{ env.GOLANGCI_VERSION }}
docker-image-tests: # docker-image-tests:
runs-on: ubuntu-20.04 # runs-on: ubuntu-20.04
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
fetch-depth: 0 # fetch-depth: 0
- name: Set up Go # - name: Set up Go
uses: actions/setup-go@v3 # uses: actions/setup-go@v3
with: # with:
go-version: ${{ env.GO_VERSION }} # go-version: ${{ env.GO_VERSION }}
- name: Run tests # - name: Run tests
run: make build # run: make build
- name: Test docker image # - name: Test docker image
run: | # run: |
docker build -t openim:ci-build . # docker build -t openim:ci-build .
goreleaser-test: # goreleaser-test:
runs-on: ubuntu-20.04 # runs-on: ubuntu-20.04
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
fetch-depth: 0 # fetch-depth: 0
- name: Set up Go # - name: Set up Go
uses: actions/setup-go@v3 # uses: actions/setup-go@v3
with: # with:
go-version: ${{ env.GO_VERSION }} # go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser # - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4 # uses: goreleaser/goreleaser-action@v4
with: # with:
version: latest # version: latest
args: release --clean --skip-publish --snapshot # args: release --clean --skip-publish --snapshot
Loading…
Cancel
Save