Merge pull request #44 from redhat-cop/renovate/configure #134
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: Run validation checks | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run ShellCheck | |
uses: ludeeus/[email protected] | |
env: | |
SHELLCHECK_OPTS: -x | |
with: | |
ignore: test | |
- name: Conftest - tests.sh | |
uses: redhat-cop/github-actions/confbatstest@master | |
with: | |
tests: test/tests.sh | |
- name: Conftest - tests_fail.sh | |
uses: redhat-cop/github-actions/confbatstest@master | |
with: | |
raw: test/tests_fail.sh > tests_fail.log || exit 0 | |
- name: Check failed tests | |
run: | | |
if [[ $(grep -c "not ok" tests_fail.log) -ne 9 ]]; then | |
echo "Expected a fixed number of failed jobs. Failing." | |
cat tests_fail.log | |
exit 1 | |
fi |