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
|
2024-03-27 22:18:21 +01:00
|
|
|
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
|
2024-05-07 10:45:21 +02:00
|
|
|
uses: golangci/golangci-lint-action@v6
|
2024-03-27 22:11:46 +01:00
|
|
|
with:
|
|
|
|
version: latest
|