Bump actions/checkout from 4.1.1 to 4.1.6 #361
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/** | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
conftest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | |
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0 | |
with: | |
dockerfile: confbatstest/Dockerfile_build | |
ignore: DL3041 # https://github.com/hadolint/hadolint/wiki/DL3041 | |
- 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 |