Add count operation
This commit is contained in:
parent
c752849518
commit
496f9541cb
12 changed files with 858 additions and 261 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -17,12 +17,20 @@ jobs:
|
|||
with:
|
||||
go-version: 1.15
|
||||
|
||||
- name: Install dependencies
|
||||
run: go get -u golang.org/x/lint/golint
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./... -covermode=count -coverprofile=cover.out
|
||||
|
||||
- name: Vet & Lint
|
||||
run: |
|
||||
go vet ./...
|
||||
golint ./...
|
||||
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
flags: unittests
|
||||
|
|
15
.github/workflows/lint.yml
vendored
15
.github/workflows/lint.yml
vendored
|
@ -7,24 +7,11 @@ on:
|
|||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
golangci-lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15
|
||||
|
||||
- name: Install dependencies
|
||||
run: go get -u golang.org/x/lint/golint
|
||||
|
||||
- name: Vet & Lint
|
||||
run: |
|
||||
go vet ./...
|
||||
golint ./...
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue