2022-12-26 04:17:13 +01:00
|
|
|
name: Lint
|
2021-04-10 19:25:15 -07:00
|
|
|
on:
|
|
|
|
push:
|
2022-08-20 16:25:34 -07:00
|
|
|
paths-ignore:
|
|
|
|
- 'web/**'
|
2022-09-21 10:22:44 -07:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'web/**'
|
2021-04-10 19:25:15 -07:00
|
|
|
|
2022-03-07 00:20:47 -08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-04-10 19:25:15 -07:00
|
|
|
jobs:
|
|
|
|
golangci:
|
2022-03-07 00:20:47 -08:00
|
|
|
name: Go linter
|
2021-05-18 10:12:52 -07:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2021-04-10 19:25:15 -07:00
|
|
|
runs-on: ubuntu-latest
|
2022-11-04 20:04:13 -07:00
|
|
|
|
2021-04-10 19:25:15 -07:00
|
|
|
steps:
|
2022-11-23 15:04:20 -08:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
|
|
|
|
2023-10-07 13:52:25 -07:00
|
|
|
- uses: actions/checkout@v4
|
2021-04-10 19:25:15 -07:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-12-19 17:51:40 -08:00
|
|
|
- uses: actions/setup-go@v5
|
2022-12-06 23:31:08 +01:00
|
|
|
with:
|
2024-04-22 13:23:52 -07:00
|
|
|
go-version: '1.22'
|
2023-02-15 15:01:14 -08:00
|
|
|
cache: true
|
2023-10-07 13:52:25 -07:00
|
|
|
- uses: actions/checkout@v4
|
2021-04-10 19:25:15 -07:00
|
|
|
- name: golangci-lint
|
2024-05-18 09:33:27 -07:00
|
|
|
uses: golangci/golangci-lint-action@v6
|
2021-04-10 19:25:15 -07:00
|
|
|
with:
|
|
|
|
only-new-issues: true
|
2022-05-11 20:39:23 -07:00
|
|
|
args: --timeout=3m
|