Skip to content

fix: lint

fix: lint #346

Workflow file for this run

name: Test
on: [push, pull_request]
env:
GODEBUG: tracebackancestors=1000
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21
- uses: actions/checkout@v3
- name: lint
if: matrix.os == 'ubuntu-latest'
run: go run github.com/ysmood/golangci-lint@latest -v 1.57.2
- name: test
env:
TERM: xterm-256color
run: go test -coverprofile="coverage.out" ./...
- name: coverage
if: matrix.os == 'ubuntu-latest'
run: go run ./cmd/check-cov