Skip to content

Commit 98cb0e0

Browse files
respencer-nclclaude
andcommitted
Add EBNF grammar validation to CI
- Add new ebnf-grammar-validation job to scala.yml workflow - Create requirements.txt for Python dependencies (lark) - Validator runs against all RIDDL test files - Returns non-zero exit on unexpected failures Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0458bba commit 98cb0e0

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/scala.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,29 @@ jobs:
158158
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
159159
find $HOME/.sbt -name "*.lock" -delete || true
160160
161+
ebnf-grammar-validation:
162+
timeout-minutes: 5
163+
permissions:
164+
contents: read
165+
runs-on: ubuntu-latest
166+
steps:
167+
- name: Checkout Code
168+
uses: actions/checkout@v4
169+
170+
- name: Set Up Python
171+
uses: actions/setup-python@v5
172+
with:
173+
python-version: '3.12'
174+
175+
- name: Install Dependencies
176+
run: |
177+
pip install -r language/jvm/src/test/python/requirements.txt
178+
179+
- name: Validate EBNF Grammar
180+
run: |
181+
cd language/jvm/src/test/python
182+
python ebnf_validator.py --verbose
183+
161184
dependency-check:
162185
timeout-minutes: 15
163186
permissions:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# RIDDL EBNF Grammar Validator Dependencies
2+
lark>=1.1.0

0 commit comments

Comments
 (0)