We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf5320a commit c4c9f0bCopy full SHA for c4c9f0b
.github/workflows/ci.yml
@@ -90,6 +90,15 @@ jobs:
90
php run-tests.php -P --show-diff tests
91
- name: Verify package
92
run: pecl package-validate
93
+ - name: Verify XML and header version are in sync
94
+ # pecl.php.org runs a similar test, but pecl package-validate doesn't,
95
+ # reinvent the wheel here
96
+ run: |
97
+ XML_VERSION=$(pecl info package.xml | perl -ne "m/^Release Version *([\\.0-9a-z]*) .*$/ && print \"\$1\\n\"" -)
98
+ echo "package.xml version is \"$XML_VERSION\""
99
+ HEADER_VERSION=$(perl -ne "m/^#define.*PHP_IBM_DB2_VERSION.*\"(.*)\"$/ && print \"\$1\\n\"" php_ibm_db2.h)
100
+ echo "php_ibm_db2.h version is \"$HEADER_VERSION\""
101
+ test "$HEADER_VERSION" = "$XML_VERSION"
102
windows:
103
defaults:
104
run:
0 commit comments