2021-04-11 04:25:15 +02:00
|
|
|
name: lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
2022-03-07 09:20:47 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-04-11 04:25:15 +02:00
|
|
|
jobs:
|
|
|
|
golangci:
|
2022-03-07 09:20:47 +01:00
|
|
|
name: Go linter
|
2021-05-18 19:12:52 +02:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2021-04-11 04:25:15 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-10 13:54:39 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-11 04:25:15 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2022-04-04 22:52:54 +02:00
|
|
|
- uses: actions/setup-go@v3
|
2022-04-10 13:54:39 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-11 04:25:15 +02:00
|
|
|
- name: golangci-lint
|
2022-05-02 18:29:48 +02:00
|
|
|
uses: golangci/golangci-lint-action@v3
|
2021-04-11 04:25:15 +02:00
|
|
|
with:
|
|
|
|
only-new-issues: true
|
2022-05-12 05:39:23 +02:00
|
|
|
args: --timeout=3m
|