add Github CI for waiver syntax check, fix waivers #2
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: Check conf/waivers syntax | |
on: | |
pull_request: | |
jobs: | |
# Build job | |
syntax-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Collect waivers | |
run: | | |
pwd | |
ls -l | |
ls -l -R | |
python3 <<'EOF' | |
import sys | |
from lib import waive | |
try: | |
list(waive.collect_waivers()) | |
sys.exit(0) | |
except waive.WaiveParseError as e: | |
print(str(e)) | |
sys.exit(1) | |
EOF |