mpl/.github/workflows/ci.yml
developtheweb b9a232667e Add Gradle wrapper and CI workflow
- Commit gradlew, gradlew.bat and gradle/wrapper so ./gradlew build works
  from a fresh clone as the README instructs (Gradle 8.7)
- Fix .gitignore rule order: *.jar came after the wrapper-jar negation and
  the last matching rule wins, so the wrapper jar was still ignored
- CI on push and pull request: build (grammar with -Werror), test, and
  parseExamples
2026-07-09 02:57:19 -04:00

29 lines
631 B
YAML

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
# ANTLR runs with -Werror (see build.gradle), so any grammar warning
# — including 184, token shadowing — fails this step.
- name: Build grammar and compile
run: ./gradlew build -x test
- name: Run tests
run: ./gradlew test
- name: Parse all examples
run: ./gradlew parseExamples