diff --git a/.github/workflows/waivers-syntax-check.yaml b/.github/workflows/waivers-syntax-check.yaml new file mode 100644 index 00000000..d69d1219 --- /dev/null +++ b/.github/workflows/waivers-syntax-check.yaml @@ -0,0 +1,25 @@ +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