Skip to content

chore: Apply more linter rules #74

chore: Apply more linter rules

chore: Apply more linter rules #74

name: lint-and-test
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ^1.22
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58.1
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^1.22
id: go
- name: Download dependencies
run: go mod download
- name: Test
run: go test -v -coverprofile=coverage.txt -covermode=count ./...
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}