-
-
Notifications
You must be signed in to change notification settings - Fork 143
38 lines (32 loc) · 1.25 KB
/
validate-wasm-grammar-prs.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
37
38
name: Validate WASM Grammar PR Changes
# Since we now want to enforce the rule that any changes to a WASM grammar binary
# file, is accompanied by a change to the `parserSource` key within the
# `grammar.cson` file. This GHA will preform this check for us.
on:
pull_request:
# paths:
# - '**.wasm'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y git python3 python3-pip make gcc g++ libx11-dev libxkbfile-dev pkg-config libsecret-1-dev
- name: Checkout the Latest Code
uses: actions/checkout@v4
with:
fetch-depth: 0
# Make sure we get all commits, so that we can compare to early commits
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install Python setuptools
# This is needed for Python 3.12+, since many versions of node-gyp
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
# out of the box. 'setuptools' package provides 'distutils'.
run: python3 -m pip install setuptools
- name: Install dependencies
run: yarn install
- name: Run Validation Script
run: node ./script/validate-wasm-grammar-prs.js