CPR-541-person-match-rds-prod #13817
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conftest k8s yaml checks | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
jobs: | |
conftest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 ##v4.2.2 | |
- name: Get changed files | |
id: files | |
uses: tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f ##v45.0.6 | |
with: | |
files_ignore: .github/** | |
- name: Setup conftest | |
uses: princespaghetti/setup-conftest@8988df9968f72ab406646e033cfe1765eb201e94 ##v1.1.22 | |
- 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 |