Update ghcr.io/redhat-cop/github-actions/confbatstest:latest Docker d… #164
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: Test confbatstest | |
on: | |
push: | |
paths: | |
- .github/workflows/confbatstest.yaml | |
- confbatstest/** | |
pull_request: | |
paths: | |
- .github/workflows/confbatstest.yaml | |
- confbatstest/** | |
jobs: | |
conftest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Switch the action to use the Dockerfile_build | |
run: | | |
mv confbatstest/Dockerfile confbatstest/Dockerfile_runnable | |
mv confbatstest/Dockerfile_build confbatstest/Dockerfile | |
- name: confbatstest - tests | |
uses: ./confbatstest | |
with: | |
tests: confbatstest/_test/conftest.sh | |
- name: confbatstest - raw | |
uses: ./confbatstest | |
with: | |
raw: konstraint doc -o POLICIES.md | |
- name: Check POLICIES.md file exists | |
run: | | |
FILE="POLICIES.md" | |
if [ -f "$FILE" ]; then | |
echo "$FILE exists." | |
else | |
echo "$FILE does not exist." | |
exit 1 | |
fi |