-
Notifications
You must be signed in to change notification settings - Fork 159
59 lines (52 loc) · 1.62 KB
/
lint.yaml
File metadata and controls
59 lines (52 loc) · 1.62 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
52
53
54
55
56
57
58
59
name: "Linting"
on:
push:
branches-ignore:
- main
permissions:
# allow read access to the content for analysis.
contents: read
# allow read access to pull requests. Use with `only-new-issues` option.
pull-requests: read
jobs:
lint:
name: Lint
runs-on: depot-ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Lint Go
uses: golangci/golangci-lint-action@v8
with:
version: v2.4.0
args: --timeout=10m
only-new-issues: true
verify: true
- name: Lint Protocol Buffers
uses: bufbuild/buf-action@v1
with:
version: 1.56.0
# Prevent buf from attempting to create a PR comment.
pr_comment: false
# buf config files are in the ./proto directory.
input: proto
# This is required to avoid the breaking change check
# from failing due to the imports from the legacy
# proto definitions, it should still allow for valid
# breaking change detection of our own new protos.
exclude_imports: true
# Ignore the legacy protos from formatting, they are
# also excluded in the buf.yaml file for breaking and
# linting checks.
exclude_paths: |
proto/logs.proto
proto/service.proto
# - name: Lint OpenAPI
# uses: swaggerexpert/swagger-editor-validate@v1
# with:
# definition-file: api/v1/testkube.yaml
# default-timeout: 20000