Skip to content

Commit

Permalink
ci: fail if generated files do not match
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Jan 14, 2025
1 parent ca52fbf commit 47e0d9f
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
name: Build/test
on:
push:
branches:
- "master"
pull_request:
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
- run: npm test
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

0 comments on commit 47e0d9f

Please sign in to comment.