forked from openstack-k8s-operators/architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.33 KB
/
linter.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
---
name: file-consistency
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
- stable
paths:
- "**.yaml"
- "**.yml"
- test-kustomizations.sh
jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install yaml-lint
run: pip install yamllint
- name: Run yaml-lint
run: yamllint -c .yamllint.yml -s .
test-kustomize:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Kustomize
uses: imranismail/setup-kustomize@v2
- name: Run test-kustomization script
run: |
kustomize version
./test-kustomizations.sh examples/
test-zuul:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install yaml
run: pip install pyyaml
- name: Run create-zuul-jobs
run: |
sha256sum zuul.d/* > checksum;
./create-zuul-jobs.py;
sha256sum -c checksum || (git diff && exit 1) && exit 0;