-
Notifications
You must be signed in to change notification settings - Fork 153
72 lines (56 loc) · 1.88 KB
/
pr-sanity.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
# This is a basic workflow to help you get started with Actions
name: Sanity Checks
# Controls when the action will run.
on:
push:
branches: [main]
paths-ignore:
- "renovate.json"
pull_request:
branches: [main]
paths-ignore:
- "renovate.json"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
name: Sanity Checks
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22" # The Go version to download (if necessary) and use.
- name: Do sanity checks
run: make sanity
- name: Verify we can actually build the operator
run: make build
- name: Unit tests
run: make test
- name: Prometheus alerts tests
run: make prom-rules-verify
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverprofiles/cover.coverprofile
- name: Verify the current manifests pass validation
run: make container-build-validate-bundles
linters:
name: linter Checks
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: v1.59.0
skip-pkg-cache: true
args: --timeout=5m --out-${NO_FUTURE}format line-number