Skip to content

fix(ci): use latest golangci-lint to support current Go versions #4

fix(ci): use latest golangci-lint to support current Go versions

fix(ci): use latest golangci-lint to support current Go versions #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21', '1.22', 'stable']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -count=1 ./...
- name: Build
run: go build ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: golangci/golangci-lint-action@v6
with:
version: latest