Skip to content

FAIL - change .metadata.namespace #11

FAIL - change .metadata.namespace

FAIL - change .metadata.namespace #11

name: Conftest k8s yaml checks
on:
pull_request:
paths-ignore:
- '.github/**'
jobs:
conftest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get changed files
id: files
uses: tj-actions/changed-files@v43
with:
files_ignore: .github/**
- name: Setup conftest
uses: princespaghetti/setup-conftest@v1.1.21
- name: Run conftest k8s checks on added or modified YAML files
run: |
status=0
for file in ${{ steps.files.outputs.all_changed_files }}; do
if [[ $file == *.yaml ]]; then
conftest test $file || status=$?
fi
done
exit $status