thusfar #412
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: Unit Tests | |
on: [push] | |
env: | |
UNIT_TEST_HITS_HARD: 1 | |
CODECOV_TOKEN: 23dacfc9-b174-4de8-9a94-af80b20898f1 | |
jobs: | |
run: | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: [ 'ubuntu-latest', 'windows-latest' ] | |
php-versions: [ '8.1' ] | |
steps: | |
- name: Checkout Source. | |
uses: actions/checkout@v2 | |
- name: Setup PHP 8.1 | |
if: ${{ matrix.php-versions == '8.1' }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
extensions: mbstring, intl, fileinfo, imagick | |
- name: Run PHPUnit | |
run: | | |
composer install | |
php vendor/bin/phpunit tests --bootstrap vendor/autoload.php --coverage-clover ./coverage.xml | |
- name: Push to Codecov Probably | |
if: ${{ matrix.php-versions == '8.1' }} | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml | |
verbose: true |