forked from stolostron/multicluster-observability-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1019 Bytes
/
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
name: lint & check bundle
on:
push:
branches:
- main
tags:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
name: Formatters + Linters (Static Analysis) for Go
env:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.21.x
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/.cache/golangci-lint
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Linting, Formatting & vetting
run: make lint
- name: Make bundle
run: make bundle
# We exclude the dockerfile as we have manually modified that to use a different user
- name: check diff
run: git diff --exit-code -- . ':(exclude)operators/multiclusterobservability/bundle.Dockerfile'