Skip to content

ci: fail if generated files do not match and add prettier #92

ci: fail if generated files do not match and add prettier

ci: fail if generated files do not match and add prettier #92

Workflow file for this run

name: Build/test
on:
push:
branches:
- 'master'
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install
- name: generate grammar
run: npm run build
- name: check for uncommited changes
run: git diff --exit-code
- run: npm test
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npx prettier --check *.js