-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (39 loc) · 1.14 KB
/
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:
push:
branches:
- main
pull_request:
permissions:
contents: read
checks: write
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: false
- name: lint go post-processor
uses: golangci/golangci-lint-action@v3
with:
version: v1.59.1
args: post-processors/go/main.go
- name: lint csharp post-processor
uses: golangci/golangci-lint-action@v3
with:
version: v1.59.1
args: post-processors/csharp/main.go
- name: lint schema tooling
uses: golangci/golangci-lint-action@v3
with:
version: v1.59.1
args: schemas/main.go
# Optional: golangci-lint command line arguments.
#
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0