Skip to content

Commit

Permalink
Add CI workflow (#4)
Browse files Browse the repository at this point in the history
Ensure generated files (JSON and plist grammars) are up to date.
  • Loading branch information
jtbandes authored Nov 5, 2023
1 parent 806e024 commit 62239f3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 20.9
- run: corepack enable yarn
- run: yarn install --immutable

- run: yarn build

- name: Ensure generated files are up to date
run: |
changes=$(git status --porcelain)
if [ -n "$changes" ]; then
echo "::error::The following generated files need to be updated. Run 'yarn build' to update them."
echo "$changes"
exit 1
else
echo "Generated files are up to date!"
fi

0 comments on commit 62239f3

Please sign in to comment.