1name: Verify generated files are up to date
2runs:
3  using: composite
4  steps:
5    - shell: bash
6      run: |
7        set -ex
8        [[ "$OSTYPE" == "darwin"* ]] && export PATH="$(brew --prefix)/opt/bison/bin:$PATH"
9        scripts/dev/credits
10        scripts/dev/genfiles
11        scripts/gdb/debug_gdb_scripts_gen.php
12        Zend/zend_vm_gen.php
13        ext/tokenizer/tokenizer_data_gen.php
14        build/gen_stub.php -f --generate-optimizer-info --verify
15        # Use the -a flag for a bug in git 2.46.0, which doesn't consider changed -diff files.
16        git add . -N && git diff -a --exit-code
17