-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (39 loc) · 991 Bytes
/
golint.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
45
46
47
48
49
50
51
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go mod vendor
- name: Lint
run: |
go vet ./...
- name: Test
run: |
go test ./...
- name: Build LBaaS controller
run: go build -v ./cmd/ch-k8s-lbaas-controller/ch-k8s-lbaas-controller.go
- name: Build LBaaS agent
run: go build -v ./cmd/ch-k8s-lbaas-agent/ch-k8s-lbaas-agent.go
- uses: actions/upload-artifact@v1
with:
name: ch-k8s-lbaas-agent
path: ch-k8s-lbaas-agent
- uses: actions/upload-artifact@v1
with:
name: ch-k8s-lbaas-controller
path: ch-k8s-lbaas-controller