-
Notifications
You must be signed in to change notification settings - Fork 19
102 lines (81 loc) · 2.14 KB
/
ci.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Run CI checks
run: make ci
lint:
name: Lint
runs-on: ubuntu-latest
container: golangci/golangci-lint:v1.49.0
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Run lint
run: make lint check-update-linters
codespell:
name: Codespell
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Codespell test
uses: codespell-project/actions-codespell@master
with:
skip: ./.git,./vendor,./bin,./go.sum
ignore_words_file: '.codespell.ignorewords'
check_filenames: true
check_hidden: true
image:
name: Image
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Test building Docker image
run: make image
changelog:
name: Changelog
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Install required binaries
run: GOBIN=/usr/local/bin make install-changelog
- name: Check changelog format
run: make test-changelog
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Test rendering manifests using kustomize
run: make build-kustomize
semgrep:
name: Semgrep
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Use dedicated action for nice integration with GitHub.
- uses: returntocorp/semgrep-action@v1