feat: add more cicd design

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

@ -66,22 +66,22 @@ jobs:
run: | run: |
make format make format
- name: Generate all necessary files, such as error code files # - name: Generate all necessary files, such as error code files
run: | # run: |
make generate # make generate
- name: Check syntax and styling of go sources # - name: Check syntax and styling of go sources
run: | # run: |
set -e # set -e
make lint # make lint
- name: Run unit test and get test coverage # - name: Run unit test and get test coverage
run: | # run: |
make cover # make cover
- name: Build source code for host platform - name: Build source code for host platform
run: | run: |
make build # skip build for now make -j 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
@ -92,23 +92,23 @@ jobs:
- 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
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: golangci-lint # - name: golangci-lint
uses: golangci/golangci-lint-action@v3 # uses: golangci/golangci-lint-action@v3
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

@ -1,9 +1,11 @@
<h1 align="center" style="border-bottom: none"> <p align="center">
<b> <a href="https://www.openim.online">
<a href="https://doc.rentsoft.cn/">Open IM Server</a><br> <img src="./assets/logo-gif/openim-logo.gif" width="60%" height="30%"/>
</b> </a>
⭐️ Open source Instant Messaging Server ⭐️ <br> </p>
</h1> <h3 align="center" style="border-bottom: none">
⭐️ Open source Instant Messaging Server ⭐️ <br>
<h3>
<p align=center> <p align=center>

@ -43,7 +43,6 @@ require (
github.com/go-sql-driver/mysql v1.6.0 github.com/go-sql-driver/mysql v1.6.0
github.com/go-zookeeper/zk v1.0.3 github.com/go-zookeeper/zk v1.0.3
github.com/redis/go-redis/v9 v9.0.5 github.com/redis/go-redis/v9 v9.0.5
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
) )
require ( require (

@ -784,8 +784,6 @@ gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI= gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI=
gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 h1:VpOs+IwYnYBaFnrNAeB8UUWtL3vEUnzSCL1nVjPhqrw=
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

Loading…
Cancel
Save