Skip to content

add docs and linter #12

add docs and linter

add docs and linter #12

Workflow file for this run

name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
- name: Test
run: go test -race -covermode atomic -coverprofile=covprofile -v ./...
- name: Install Goveralls
run: go install github.com/mattn/[email protected]
- name: Upload Coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -ignore=cmd/**/*.go -coverprofile=covprofile -service=github