Update github config files

This commit is contained in:
guanguans 2021-01-12 16:26:52 +08:00
parent bb741d8d95
commit f2179ed28b
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Init Go modules # - name: Init Go modules
run: go mod init guanguans/id-validator # run: go mod init guanguans/id-validator
- name: Run golangci-lint - name: Run golangci-lint
uses: actions-contrib/golangci-lint@v1 uses: actions-contrib/golangci-lint@v1

View File

@ -12,7 +12,7 @@ jobs:
name: Test name: Test
strategy: strategy:
matrix: 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] platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
@ -24,7 +24,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Run unit tests - name: Run unit tests
run: | run: |
# go mod init guanguans/id-validator # go mod init guanguans/id-validator
go test -v -race -coverprofile=coverage -covermode=atomic ./... go test -v -race -coverprofile=coverage -covermode=atomic ./...
- name: Upload coverage report to Codecov - name: Upload coverage report to Codecov
uses: codecov/codecov-action@v1.0.6 uses: codecov/codecov-action@v1.0.6

View File

@ -2,7 +2,7 @@
> 中国身份证号验证、获取身份证号信息、升级 15 位身份证号为 18 位、伪造符合校验的身份证号。 > 中国身份证号验证、获取身份证号信息、升级 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) [![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) [![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) [![GoDoc](https://godoc.org/github.com/guanguans/id-validator?status.svg)](https://godoc.org/github.com/guanguans/id-validator)