-
Notifications
You must be signed in to change notification settings - Fork 25
55 lines (51 loc) · 1.52 KB
/
golangci-lint.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
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
name: Golang lint, vet and unit test pipeline
on: [push, pull_request]
jobs:
test:
name: github (govet, golint and gotest)
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.19.x
- name: Checkout project code
uses: actions/checkout@v2
- name: Checkout openstack-k8s-operators-ci project
uses: actions/checkout@v2
with:
repository: openstack-k8s-operators/openstack-k8s-operators-ci
path: ./openstack-k8s-operators-ci
- name: Run govet.sh
run: ./openstack-k8s-operators-ci/test-runner/govet.sh
- name: Run golint.sh
run: ./openstack-k8s-operators-ci/test-runner/golint.sh
- name: Run gotest.sh
run: ./openstack-k8s-operators-ci/test-runner/gotest.sh
golangci:
name: github (golangci)
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.19.x
- name: Checkout project code
uses: actions/checkout@v2
- name: Run golangci lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: --timeout 5m
operator-lint:
name: operator-lint
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.19.x
- name: Checkout project code
uses: actions/checkout@v2
- name: Run operator-lint
run: make operator-lint