-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (47 loc) · 1.05 KB
/
Copy pathgolangci-lint.yml
File metadata and controls
51 lines (47 loc) · 1.05 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
43
44
45
46
47
48
49
50
51
name: Golangci Lint Check
on:
push:
branches:
- "main"
paths-ignore:
- "**.md"
- ".github/ISSUE_TEMPLATE/*.yml"
- ".github/dependabot.yml"
- "website/**"
- "preloaded-repositories.txt"
- "README.md"
- ".github/**"
- "get_repos_data.sh"
- "scripts/**"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"
- LICENSE
- ".github/ISSUE_TEMPLATE/*.yml"
- ".github/dependabot.yml"
- "website/**"
- "preloaded-repositories.txt"
- "README.md"
- ".github/**"
- "get_repos_data.sh"
- "scripts/**"
jobs:
golangci-lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Fetch Repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
args: --tests=false