.github/workflows/lint.yml
name: Lint Golang code
on:
pull_request:
branches-ignore:
- master
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: check out code
uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '1.20'
cache: false
- run: go version
- name: run linter
uses: golangci/golangci-lint-action@v6
with:
version: v1.52.2