From af4b7688883a7e7e8538ec504da7f14dce38c2f1 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Wed, 12 Jul 2023 11:39:23 +0800 Subject: [PATCH] feat: add more cicd design Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .github/workflows/openim-ci.yml | 52 ++++++++++++++++----------------- README.md | 14 +++++---- go.mod | 1 - go.sum | 2 -- 4 files changed, 34 insertions(+), 35 deletions(-) diff --git a/.github/workflows/openim-ci.yml b/.github/workflows/openim-ci.yml index da077b641..f0edc3121 100644 --- a/.github/workflows/openim-ci.yml +++ b/.github/workflows/openim-ci.yml @@ -66,22 +66,22 @@ jobs: run: | make format - - name: Generate all necessary files, such as error code files - run: | - make generate + # - name: Generate all necessary files, such as error code files + # run: | + # make generate - - name: Check syntax and styling of go sources - run: | - set -e - make lint + # - name: Check syntax and styling of go sources + # run: | + # set -e + # make lint - - name: Run unit test and get test coverage - run: | - make cover + # - name: Run unit test and get test coverage + # run: | + # make cover - name: Build source code for host platform run: | - make build # skip build for now + make -j build # skip build for now - name: Collect Test Coverage File uses: actions/upload-artifact@v1.0.0 @@ -92,23 +92,23 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - lint: - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 +# lint: +# 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: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: ${{ env.GOLANGCI_VERSION }} +# - name: golangci-lint +# uses: golangci/golangci-lint-action@v3 +# with: +# version: ${{ env.GOLANGCI_VERSION }} docker-image-tests: runs-on: ubuntu-20.04 diff --git a/README.md b/README.md index e8da2ab5e..b180f4438 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ -
+
+
+
+
diff --git a/go.mod b/go.mod index 88d5abb09..0a8c1fd52 100644 --- a/go.mod +++ b/go.mod @@ -43,7 +43,6 @@ require ( github.com/go-sql-driver/mysql v1.6.0 github.com/go-zookeeper/zk v1.0.3 github.com/redis/go-redis/v9 v9.0.5 - gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 ) require ( diff --git a/go.sum b/go.sum index 12f5d41bb..443d6cb9d 100644 --- a/go.sum +++ b/go.sum @@ -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/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI= 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/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=