Skip to content

Add examples for nullability and null states #1941

Add examples for nullability and null states

Add examples for nullability and null states #1941

name: ANTLR Grammar validator
# Triggers the workflow on pull request events that update the branch
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
reason:
description: 'The reason for running the workflow'
required: true
default: 'Manual run'
jobs:
grammar-validator:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
steps:
- name: Check out our repo
uses: actions/checkout@v2
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Set up JDK 15
uses: actions/setup-java@v1
with:
java-version: 15.0
# Install build grammar global tool
- name: Install BuildGrammar tool
run: |
dotnet tool install --version 2.0.0-beta.3 --global --add-source ./.github/workflows/dependencies/ EcmaTC49.BuildGrammar
- name: run validate
run: |
cd tools
./validate-grammar.sh