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