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'
|
|
|
|
|
2023-10-07 23:52:25 +03:00
|
|
|
- uses: actions/checkout@v4
|
2021-04-11 05:25:15 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-12-20 04:51:40 +03:00
|
|
|
- uses: actions/setup-go@v5
|
2022-12-07 01:31:08 +03:00
|
|
|
with:
|
2024-04-22 23:23:52 +03:00
|
|
|
go-version: '1.22'
|
2023-02-16 02:01:14 +03:00
|
|
|
cache: true
|
2023-10-07 23:52:25 +03:00
|
|
|
- uses: actions/checkout@v4
|
2021-04-11 05:25:15 +03:00
|
|
|
- name: golangci-lint
|
2024-04-25 18:31:57 +03:00
|
|
|
uses: golangci/golangci-lint-action@v5
|
2021-04-11 05:25:15 +03:00
|
|
|
with:
|
|
|
|
only-new-issues: true
|
2022-05-12 06:39:23 +03:00
|
|
|
args: --timeout=3m
|