Revert "CI: Move apply tests to central workflow" #61
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |