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

31 lines
555 B
YAML
Raw Normal View History

2024-03-27 22:11:46 +01:00
name: golangci-lint
on:
push:
branches: [ "master" ]
2024-03-27 22:48:14 +01:00
tags: [ "*" ]
2024-03-27 22:11:46 +01:00
pull_request:
branches: [ "master" ]
permissions:
contents: read
pull-requests: read
checks: write
2024-03-27 22:11:46 +01:00
jobs:
golangci:
2024-03-27 22:17:29 +01:00
strategy:
matrix:
go: ['1.21', '1.22']
2024-03-27 22:11:46 +01:00
name: lint
2024-03-27 22:35:57 +01:00
runs-on: ubuntu-latest
2024-03-27 22:11:46 +01:00
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
2024-03-27 22:17:29 +01:00
go-version: ${{ matrix.go }}
2024-03-27 22:11:46 +01:00
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest