Skip to content

fix: make golangci-lint compatible with go1.25 #4

fix: make golangci-lint compatible with go1.25

fix: make golangci-lint compatible with go1.25 #4

Workflow file for this run

name: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: go test
run: go test ./...
- name: go test -race (linux)
if: matrix.os == 'ubuntu-latest'
run: go test -race ./...
- name: go mod tidy check
if: matrix.os == 'ubuntu-latest'
run: |
go mod tidy
git diff --exit-code
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- uses: golangci/golangci-lint-action@v6
with:
version: v1.64.8
install-mode: goinstall
args: --timeout=5m
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: govulncheck
run: govulncheck ./...