Skip to content

Commit

Permalink
add Github CI for waiver syntax check, fix waivers
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Jaburek <[email protected]>
  • Loading branch information
comps committed Apr 5, 2024
1 parent d1e767d commit a6cf14d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/waivers-syntax-check.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a6cf14d

Please sign in to comment.