Update github config files
This commit is contained in:
parent
bb741d8d95
commit
f2179ed28b
4
.github/workflows/golangci-lint.yml
vendored
4
.github/workflows/golangci-lint.yml
vendored
@ -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
|
||||
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user