Skip to content

Add ToC & max clause depth to provide flexibility #696

Add ToC & max clause depth to provide flexibility

Add ToC & max clause depth to provide flexibility #696

Workflow file for this run

name: enforce-format
on:
push:
branches:
- main
pull_request:
jobs:
check:
name: Enforce format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install dependencies
run: npm ci
- name: Enforce code format
run: |
npm run format
if ! git diff-index --quiet HEAD; then
echo "You need to run \`npm run format\`"
exit 1
fi
- name: Build
run: npm run build
- name: Enforce spec format
run: 'if ! node bin/emu-format.js --check spec/index.html; then echo "You need to run \`npm run format-spec\`"; exit 1; fi'