Skip to content

lint: add golangci-lint configuration #1

lint: add golangci-lint configuration

lint: add golangci-lint configuration #1

Workflow file for this run

name: Go
on:
push:
branches: main
pull_request:
branches: ["*"]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
check-latest: true
- name: Test
run: go test -v