Skip to content

Commit 8fe6f4e

Browse files
committed
[CI] Check that headers are up to date in the CI pipeline
1 parent 1ab0aff commit 8fe6f4e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ jobs:
3131
uses: shivammathur/setup-php@v2
3232
with:
3333
php-version: ${{matrix.version}}
34+
- name: Checkout "php/php-src"
35+
uses: actions/checkout@v3
36+
with:
37+
repository: php/php-src
38+
ref: master
39+
path: php-src
40+
- name: Verify headers
41+
if: "${{ matrix.version >= '8.0' }}"
42+
run: |
43+
HEADERS_IN_SYNC=$(php php-src/build/gen_stub.php .)
44+
if [[ ! -z $HEADERS_IN_SYNC ]]; then echo 'Headers are not in sync with "ibm_db2.stub.php".' && exit 1; fi;
3445
- name: phpize
3546
run: phpize
3647
- name: configure

0 commit comments

Comments
 (0)