Tree-sitter rolling fixes: 1.121 edition #142
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 |