-
Notifications
You must be signed in to change notification settings - Fork 831
41 lines (41 loc) · 1.26 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
name: V2 Lint
on:
pull_request:
jobs:
lint:
name: lint
if: github.repository == 'SeldonIO/seldon-core' # Do not run this on forks.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19.10'
- name: lint-operator
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
working-directory: operator
# NOTE: We need to skip caching packages until the following issue is
# resolved (same applies to the other steps):
# https://github.com/golangci/golangci-lint-action/issues/677
skip-pkg-cache: true
- name: lint-scheduler
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
working-directory: scheduler
skip-pkg-cache: true
- name: lint-hodometer
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
working-directory: hodometer
skip-pkg-cache: true
- name: lint-tls
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
working-directory: components/tls
skip-pkg-cache: true
args: --timeout 3m --verbose