Update readme.md #21
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 Test | |
on: [ push ] | |
jobs: | |
PHPUnit: | |
strategy: | |
matrix: | |
include: | |
- php: 8.1 | |
- php: 8.2 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv | |
coverage: xdebug | |
- name: Install dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --ignore-platform-reqs | |
- name: Run PHPUnit | |
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |