2022-12-26 06:17:13 +03:00
|
|
|
name: Lint
|
2021-04-11 05:25:15 +03:00
|
|
|
on:
|
|
|
|
push:
|
2022-08-21 02:25:34 +03:00
|
|
|
paths-ignore:
|
|
|
|
- 'web/**'
|
2022-09-21 20:22:44 +03:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '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
|
2022-11-05 06:04:13 +03:00
|
|
|
|
2021-04-11 05:25:15 +03:00
|
|
|
steps:
|
2022-11-24 02:04:20 +03:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
|
|
|
|
2022-04-10 14:54:39 +03:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-11 05:25:15 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-03-18 09:25:12 +03:00
|
|
|
- uses: actions/setup-go@v4
|
2022-12-07 01:31:08 +03:00
|
|
|
with:
|
|
|
|
go-version: '1.18.8'
|
2023-02-16 02:01:14 +03:00
|
|
|
cache: true
|
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-12 06:39:23 +03:00
|
|
|
args: --timeout=3m
|