Skip to content

Commit 41836a0

Browse files
committed
add kubeconform
1 parent 1a155b3 commit 41836a0

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,21 @@ jobs:
5252
- uses: Swatinem/rust-cache@v2
5353
- run: cargo clippy --all-targets --all-features
5454

55+
kubeconform:
56+
name: Lint Kubernetes manifests
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v6
60+
- name: Install kubeconform
61+
run: |
62+
curl -fsSL https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz \
63+
| tar xz -C /usr/local/bin kubeconform
64+
- run: kubeconform -strict -summary operator.yaml
65+
5566
tests-pass:
5667
if: always()
5768
name: Tests pass
58-
needs: [test]
69+
needs: [test, clippy, kubeconform]
5970
runs-on: ubuntu-latest
6071
steps:
6172
- uses: re-actors/alls-green@release/v1

0 commit comments

Comments
 (0)