-
Notifications
You must be signed in to change notification settings - Fork 832
44 lines (44 loc) · 1.25 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
43
44
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@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: lint-operator
uses: golangci/golangci-lint-action@v3
with:
version: v1.57.2
working-directory: operator
skip-cache: true
args: --timeout 10m --verbose
- name: lint-scheduler
uses: golangci/golangci-lint-action@v3
with:
version: v1.57.2
working-directory: scheduler
skip-cache: true
args: --timeout 10m --verbose
- name: lint-hodometer
uses: golangci/golangci-lint-action@v3
with:
version: v1.57.2
working-directory: hodometer
skip-cache: true
args: --timeout 10m --verbose
- name: lint-tls
uses: golangci/golangci-lint-action@v3
with:
version: v1.57.2
working-directory: components/tls
skip-cache: true
args: --timeout 10m --verbose
- name: lint-dataflow
run: make -C scheduler/data-flow lint