Skip to content

Add CI workflow

Add CI workflow #5

Workflow file for this run

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