-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (38 loc) · 1.01 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Lint
permissions:
contents: read
on:
push:
paths-ignore:
- '**/*.md'
- '.github/dependabot.yaml'
- 'chart/**'
- 'LICENSE'
pull_request:
paths-ignore:
- '**/*.md'
- '.github/dependabot.yaml'
- 'chart/**'
- 'LICENSE'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout=30m --verbose
skip-cache: true