1name: Verify generated files are up to date
2runs:
3  using: composite
4  steps:
5    - shell: bash
6      run: |
7        set -x
8        [[ "$OSTYPE" == "darwin"* ]] && export PATH="/usr/local/opt/bison/bin:$PATH"
9        scripts/dev/credits
10        scripts/dev/genfiles
11        Zend/zend_vm_gen.php
12        ext/tokenizer/tokenizer_data_gen.php
13        build/gen_stub.php -f
14        build/gen_stub.php --generate-optimizer-info
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