-
Notifications
You must be signed in to change notification settings - Fork 229
42 lines (33 loc) · 1.12 KB
/
golangci-lint.yml
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: golangci-lint
on:
schedule:
- cron: '0 5 * * *'
pull_request:
jobs:
golangci:
name: golangci-lint
runs-on: runs-on,runner=4cpu-linux-x64,run-id=${{ github.run_id }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: false
- name: Generate Golang
run: |
export PATH=$PATH:/home/runner/go/bin/
- name: golangci-lint
uses: golangci/[email protected]
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.61.0
args: --timeout=10m --config=.golangci.json
# Optional: show only new issues if it's a pull request. The default value is `false`.
# The condition sets this to true for PR events.
only-new-issues: "${{ github.event_name == 'pull_request'}}"
skip-cache: true