-
Notifications
You must be signed in to change notification settings - Fork 17
52 lines (48 loc) · 1.7 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
name: Golang lint, vet and unit test pipeline
on: [push, pull_request]
jobs:
testmaster:
name: github (govet, golint and gotest) OSPdO master
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
- name: Checkout project code
uses: actions/checkout@v3
with:
repository: openstack-k8s-operators/osp-director-operator
- name: Checkout openstack-k8s-operators-ci project
uses: actions/checkout@v3
with:
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
teststable: # OSPdO v1.2.x
name: github (govet, golint and gotest) OSPdO v1.2.x
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.16.0 # don't bump this until we drop OSPdO v1.2.x
- name: Checkout project code
uses: actions/checkout@v3
with:
repository: openstack-k8s-operators/osp-director-operator
ref: v1.2.x
- name: Checkout openstack-k8s-operators-ci project
uses: actions/checkout@v3
with:
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