Skip to content

Add a CI job enforcing that the generated output is in sync #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@ jobs:
run: composer update --ansi --no-progress --prefer-dist --no-interaction
- run: vendor/bin/php-cs-fixer fix --dry-run --show-progress=dots --no-interaction

check_generated_output:
name: Generated output not changed
needs: [coding_standards]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: '8.3'
- name: Install dependencies
run: composer update --ansi --no-progress --prefer-dist --no-interaction
- name: Regenerate
run: ./generate --all
- name: Assert up-to-date
uses: tj-actions/verify-changed-files@v20
with:
fail-if-changed: 'true'
fail-message: "Generated files don't match the manifest files. Make sure to run `./generate --all` to regenerate the code from the manifest."

tests:
name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}"
runs-on: ubuntu-latest
Expand Down
Loading