diff options
| author | Peter Soos <69847110+bpsoos@users.noreply.github.com> | 2024-06-27 21:11:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-27 15:11:26 -0400 |
| commit | 89f3bd1c75ed1f7e5e5525619e2c6ed51b988f7c (patch) | |
| tree | 2ce27121291a510665d6f9f067f7bc8964a044a4 /.github | |
| parent | c9ed948f17348fd6ef384294ece609213f185747 (diff) | |
:test_tube: adds manifest tests (#761)
Signed-off-by: bpsoos <soos.peter.96@gmail.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci-tests.yaml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml index d032aa9..6e63d88 100644 --- a/.github/workflows/ci-tests.yaml +++ b/.github/workflows/ci-tests.yaml @@ -91,3 +91,29 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} file: coverage.out + + test-manifests: + name: Ensure kubernetes manifests conform to their schema + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install Kubeconform + run: | + set -xo pipefail + + curl -sLf --retry 3 \ + -o /tmp/kubeconform.tar.gz \ + "https://github.com/yannh/kubeconform/releases/download/v0.6.6/kubeconform-linux-amd64.tar.gz" + chksum=$(sha256sum /tmp/kubeconform.tar.gz | awk '{ print $1; }') + if test "${chksum}" != "2ff56999a6ed9e96fe5ab9ee52271f2db5335baf7f17789035b9561970cdd3eb"; then + echo "Checksum mismatch" >&2 + exit 1 + fi + + tar -C /tmp -xvzf /tmp/kubeconform.tar.gz + sudo mv /tmp/kubeconform /usr/local/bin/kubeconform + chmod +x /usr/local/bin/kubeconform + - name: Run manifest tests + run: | + make test-manifests |
