Skip to content

fix: upgrade golangci-lint-action to v7 and remove Homebrew tap config #3

fix: upgrade golangci-lint-action to v7 and remove Homebrew tap config

fix: upgrade golangci-lint-action to v7 and remove Homebrew tap config #3

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.22", "1.23"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Tidy
run: go mod tidy
- name: Vet
run: go vet ./...
- name: Test
run: go test ./... -race -coverprofile=coverage.out
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: v2.5.0
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Build
run: CGO_ENABLED=0 go build .