-
Notifications
You must be signed in to change notification settings - Fork 234
28 lines (27 loc) · 1 KB
/
go-linting.yaml
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
name: Golang Lint
on: [pull_request]
jobs:
golangci-lint:
name: golangci lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.work'
cache: false
- name: lint opensearch-operator
uses: golangci/golangci-lint-action@v4
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.57
working-directory: opensearch-operator
args: --timeout=6m --skip-dirs="(^|/)responses($|/)" -v
- name: lint operator-sidecar
uses: golangci/golangci-lint-action@v4
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.57
working-directory: operator-sidecar
args: --timeout=6m -v