diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 627f3eb..c1c5ef9 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Init Go modules - run: go mod init guanguans/id-validator +# - name: Init Go modules +# run: go mod init guanguans/id-validator - name: Run golangci-lint uses: actions-contrib/golangci-lint@v1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f310c43..159d153 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ jobs: name: Test strategy: matrix: - go-version: [1.13.x, 1.14.x, 1.15.x] + go-version: [1.14.x, 1.15.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v2 - name: Run unit tests run: | - # go mod init guanguans/id-validator +# go mod init guanguans/id-validator go test -v -race -coverprofile=coverage -covermode=atomic ./... - name: Upload coverage report to Codecov uses: codecov/codecov-action@v1.0.6 diff --git a/README.md b/README.md index 1de7bda..1cd7a1b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > 中国身份证号验证、获取身份证号信息、升级 15 位身份证号为 18 位、伪造符合校验的身份证号。 -![Tests](https://github.com/guanguans/id-validator/workflows/Tests/badge.svg) +[![Tests](https://github.com/guanguans/id-validator/workflows/Tests/badge.svg)](https://github.com/guanguans/id-validator/actions) [![gocover.io](https://gocover.io/_badge/github.com/guanguans/id-validator)](https://gocover.io/github.com/guanguans/id-validator) [![Go Report Card](https://goreportcard.com/badge/github.com/guanguans/id-validator)](https://goreportcard.com/report/github.com/guanguans/id-validator) [![GoDoc](https://godoc.org/github.com/guanguans/id-validator?status.svg)](https://godoc.org/github.com/guanguans/id-validator)