2022-06-17 08:12:58 +00:00
|
|
|
name: golang-lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
2024-04-08 09:21:42 +00:00
|
|
|
|
2022-06-17 08:12:58 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2024-04-08 09:21:42 +00:00
|
|
|
pull-requests: read
|
|
|
|
checks: write
|
2022-06-17 08:12:58 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-04-08 09:21:42 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
2022-06-17 08:12:58 +00:00
|
|
|
with:
|
2024-04-08 09:21:42 +00:00
|
|
|
go-version: '1.21'
|
|
|
|
cache: false
|
2022-06-17 08:12:58 +00:00
|
|
|
- name: golangci-lint
|
2024-07-29 06:13:02 +00:00
|
|
|
uses: golangci/golangci-lint-action@v6
|
2022-06-17 08:12:58 +00:00
|
|
|
with:
|
2024-04-08 09:21:42 +00:00
|
|
|
version: 'v1.54'
|