-
Notifications
You must be signed in to change notification settings - Fork 61
42 lines (36 loc) · 1.13 KB
/
golangci-lint.yml
File metadata and controls
42 lines (36 loc) · 1.13 KB
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: Go linting on PRs pushed to osctrl
on:
pull_request:
branches: [main, master, develop]
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".golangci.yml"
- ".github/workflows/golangci-lint.yml"
permissions:
contents: read
env:
GOLANG_VERSION: 1.25.4
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
########################### Set up Go ###############################
- name: Set up Go
uses: actions/setup-go@8e57b58e57be52ac95949151e2777ffda8501267 # v5.5.0
with:
go-version: "${{ env.GOLANG_VERSION }}"
cache: true
########################### Run golangci-lint #######################
- name: golangci-lint
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
with:
version: latest
working-directory: ./
args: --timeout=5m
only-new-issues: true