mpl/.github/workflows/ci.yml
2026-07-09 18:13:04 -04:00

43 lines
935 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
interpreter:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node 24
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Run interpreter tests
run: node --test "js/test/*.test.mjs"