Skip to content

Commit 212803d

Browse files
authored
Merge pull request #44 from ContainerSolutions/kubeconform
Changing kubeval in CI tests to kubeconform
2 parents 5b09f5a + ed31e7c commit 212803d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: install kubeval
12+
- name: install kubeconform
1313
run: |
14-
curl -L https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz | tar -zxf -
15-
sudo mv kubeval /usr/local/bin
14+
curl -L https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar -zxf -
15+
sudo mv kubeconform /usr/local/bin
1616
- name: check all yaml
1717
run: |
18-
comm -3 <(find . | grep yaml$ | sort) <(cat .kubeval-ignore | sort) | xargs -n1 kubeval --strict | tee -a apply.txt
18+
comm -3 <(find . | grep yaml$ | sort) <(cat .kubeconform-ignore | sort) | xargs -n1 kubeconform --strict | tee -a apply.txt
1919
- name: upload artifact
2020
uses: actions/upload-artifact@v2
2121
with:
2222
name: apply-test-all-yaml
2323
path: apply.txt
2424
- name: check apply log for error
2525
run: |
26-
if grep '^ERR' apply.txt; then exit 1; fi
26+
if [ -s apply.txt ]; then exit 1; fi
File renamed without changes.

0 commit comments

Comments
 (0)