Skip to content

chore: make golangci-lint happy #3

chore: make golangci-lint happy

chore: make golangci-lint happy #3

Workflow file for this run

# This file was copied from the following URL and modified:
# https://github.com/golangci/golangci-lint-action/blob/master/README.md#how-to-use
name: golangci
on:
push:
branches: ['main']
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
golangci:
name: lint
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.3 # current version at time of commit
args: --timeout 10m
only-new-issues: true
- name: go-test
run: go test ./...