Browse Source

Update github config files

tags/v1.0.0
guanguans 3 years ago
parent
commit
f2179ed28b
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      .github/workflows/golangci-lint.yml
  2. +2
    -2
      .github/workflows/tests.yml
  3. +1
    -1
      README.md

+ 2
- 2
.github/workflows/golangci-lint.yml View File

@@ -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

+ 2
- 2
.github/workflows/tests.yml View File

@@ -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


+ 1
- 1
README.md View File

@@ -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…
Cancel
Save