Add tests for new functionality, and fix the bugs they found #2
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: PHP | |
on: [push] | |
jobs: | |
run: | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
php-versions: ['7.4', '8.0', '8.1', '8.2'] | |
phpunit-versions: ['9.5'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl | |
ini-values: post_max_size=256M, max_execution_time=180 | |
coverage: xdebug | |
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
- name: Validate Composer | |
run: composer validate | |
- name: Install Composer Deps | |
run: composer install | |
- name: Run Tests | |
run: phpunit --testdox --coverage-text --coverage-clover=coverage.clover |