-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (35 loc) · 1.02 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
name: GolangCIlint
on:
pull_request:
paths-ignore:
- 'documentation/**'
- 'scripts/**'
- 'tools/**'
jobs:
golangci-lint:
name: GolangCI-Lint
runs-on: self-hosted
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Checkout custom linter
uses: actions/checkout@v3
with:
repository: karimodm/typegroupingcheck
path: typegroupingcheck
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: './typegroupingcheck/go.mod'
- name: Build custom linter
working-directory: ./typegroupingcheck
run: |
go build -buildmode=plugin -o typegroupingcheck.so
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
golangci_lint_flags: "--timeout=10m"
reporter: github-pr-check
filter_mode: nofilter
fail_on_error: true