Skip to content

Commit

Permalink
Improve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Mar 8, 2020
1 parent 47f5b53 commit 64515db
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ jobs:
bash install.sh ${version/./}
- name: Testing PHP version
run: |
php --ini
php -v
phpize --version
php-config --version
php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}"
- name: Testing
- name: Testing PHP extensions
run: |
php -m
php -m
version=${{ matrix.php-versions }}
for bin in /tmp/php"${version/./}"/ext/*.so; do
extension=$(basename "$bin" | cut -d'.' -f 1)
php -r "if(! extension_loaded('$extension')) {throw new Exception('$extension not found');}"
done
php -r "if(! extension_loaded('Zend OPcache')) {throw new Exception('Zend OPcache not found');}"
- name: Testing PECL version
run: pecl -V
- name: Testing SSL in file_get_contents
run: php -r "echo file_get_contents('https://repo.packagist.org/packages.json');"

0 comments on commit 64515db

Please sign in to comment.