-
Notifications
You must be signed in to change notification settings - Fork 6
75 lines (65 loc) · 1.79 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
name: continuous-integration
on:
push:
branches:
- main
- release*
tags:
- v1.*
- v2.*
pull_request:
branches:
- main
- release*
permissions:
contents: read
env:
E2E_SETUP_KIND: yes
E2E_SETUP_KUBECTL: yes
SUDO: sudo
GO_VERSION: "^1.20"
jobs:
ci-e2e-tests:
name: ci-e2e-tests
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: End-to-end tests
run: |
make test
check-bundles:
name: check-bundles
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Download Kustomize
run: |
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
mv kustomize /usr/local/bin/
- name: Compare Bundles
run: |
if ! make compare-bundles; then
echo "::error:: Bundles comparison failed. Please run 'make generate-bundles' and check in changes."
exit 1
fi
check-kuadrant-custom-resource-state:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Execute generation script
run: ./hack/gen_kuadrant_custom_resource_state.sh
- name: Check for changes in generated file
run: |
if ! git diff --exit-code ./config/kuadrant/custom-resource-state.yaml; then
echo "The generated file ./config/kuadrant/custom-resource-state.yaml has changes."
echo "Please run './hack/gen_kuadrant_custom_resource_state.sh' locally and check in the changes."
exit 1
fi