Update composer.json #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check composer, run tests with cov report | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
permissions: | |
write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Check PHP installation | |
run: php -m | |
- name: Check PHP packages | |
run: dpkg --get-selections | grep -i php | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
dev: yes | |
- name: Run PHPUnit Tests | |
uses: php-actions/phpunit@master | |
with: | |
version: 9.6.7 | |
php_version: 8.0 | |
php_extensions: xdebug | |
bootstrap: vendor/autoload.php | |
configuration: test/utils/phpunit.xml | |
args: --coverage-text | |
env: | |
XDEBUG_MODE: coverage | |