Add count operation

This commit is contained in:
sunboyy 2021-02-06 18:05:47 +07:00
parent c752849518
commit 496f9541cb
12 changed files with 858 additions and 261 deletions
.github/workflows

View file

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

View file

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