Skip to content

ci: add golangci-lint #65

ci: add golangci-lint

ci: add golangci-lint #65

Workflow file for this run

name: Tests
on:
pull_request:
push:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
test:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21'
- '1.22'
- '1.23'
- '1.24'
name: Go ${{ matrix.go }} test
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
-
name: Run tests
run: go test ./...