fatcontext/.github/workflows/golangci-lint.yml

30 lines
555 B
YAML

name: golangci-lint
on:
push:
branches: [ "master" ]
tags: [ "*" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
pull-requests: read
checks: write
jobs:
golangci:
strategy:
matrix:
go: ['1.21', '1.22']
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest