-
Notifications
You must be signed in to change notification settings - Fork 764
47 lines (43 loc) · 1.47 KB
/
controller-test.yml
File metadata and controls
47 lines (43 loc) · 1.47 KB
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
name: controller tests
on:
pull_request:
paths:
- 'cyclops-ctrl/**'
push:
paths:
- 'cyclops-ctrl/**'
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Unit tests
working-directory: cyclops-ctrl
run: |
make unit-test
validate-crd-updates:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate Module
working-directory: cyclops-ctrl
run: |
diff \
<(yq -N 'select(.kind == "CustomResourceDefinition" and .metadata.name == "modules.cyclops-ui.com")' ../install/cyclops-install.yaml) \
<(yq -N config/crd/bases/cyclops-ui.com_modules.yaml)
- name: Validate TemplateAuthRule
working-directory: cyclops-ctrl
run: |
diff \
<(yq -N 'select(.kind == "CustomResourceDefinition" and .metadata.name == "templateauthrules.cyclops-ui.com")' ../install/cyclops-install.yaml) \
<(yq -N config/crd/bases/cyclops-ui.com_templateauthrules.yaml)
- name: Validate TemplateStore
working-directory: cyclops-ctrl
run: |
diff \
<(yq -N 'select(.kind == "CustomResourceDefinition" and .metadata.name == "templatestores.cyclops-ui.com")' ../install/cyclops-install.yaml) \
<(yq -N config/crd/bases/cyclops-ui.com_templatestores.yaml)