forked from red-hat-storage/ocs-client-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 929 Bytes
/
verify-generated.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
---
name: verify-generated
on:
push:
branches: ['*']
paths:
- hack/**
- Makefile
- config/manager/csi-images.yaml
- go.mod
- go.sum
- vendor
pull_request:
branches: ['*']
paths:
- hack/**
- Makefile
- config/manager/csi-images.yaml
- go.mod
- go.sum
- vendor
jobs:
csi-images-manifest:
name: verify-generated-changes
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify go deps
run: make godeps-verify
- name: Verify bundle
run: |
make bundle
msg='Uncommitted bundle changes. Run `make bundle` and commit results.'
git diff --exit-code bundle || (echo -e '\e[31m'"$msg"; exit 1)