Skip to content

Bump golangci/golangci-lint-action from 5 to 6 (#5) #34

Bump golangci/golangci-lint-action from 5 to 6 (#5)

Bump golangci/golangci-lint-action from 5 to 6 (#5) #34

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
golangci:
name: golangci-lint
strategy:
matrix:
go: ["1.21"]
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.20", "1.21"]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install go pkgs
run: |
go mod download
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Bench
run: go test -bench=. ./...