-
Notifications
You must be signed in to change notification settings - Fork 28
36 lines (32 loc) · 1.02 KB
/
specparser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This workflow will run the Dart language specparser on the modified files in a PR
name: Spec Parser
on:
pull_request:
branches: [ "master" ]
paths:
- '**.dart'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
repository: dart-lang/sdk
path: sdk
- name: Set up JDK 11
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
java-version: '11'
distribution: temurin
- name: Set up Antlr4
run: sudo apt-get install -y antlr4
- name: Build specparser
run: make
working-directory: sdk/tools/spec_parser
- name: Check modified files
run: sdk/tools/spec_parse.py `gh pr view ${{ github.event.number }} --json files -q '.files[].path' | grep '.dart$' | xargs ls -d 2>/dev/null`
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}