Skip to content

Revert "CI: Move apply tests to central workflow" #61

Revert "CI: Move apply tests to central workflow"

Revert "CI: Move apply tests to central workflow" #61

Workflow file for this run

---
name: Schemas
on:
pull_request: {}
push:
branches:
- main
permissions:
contents: read
jobs:
generate:
name: Generate
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Generate schemas
run: bundle exec rake schemas:all
- name: Compare changes
run: |
if git diff --quiet; then
echo 'Did not detect changes to JSON schemas'
exit 0
else
echo 'Detected changes to JSON schemas. Run schema generation task and commit changes:
bundle exec rake schemas:all'
exit 1
fi