Merge pull request #165 from b1scione/organizations-update #569
This file contains hidden or 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
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| name: PHP Unit | |
| jobs: | |
| Unit: | |
| runs-on: ubuntu-latest | |
| env: | |
| XDEBUG_MODE: coverage | |
| strategy: | |
| matrix: | |
| php: [ 8.1, 8.2, 8.3, 8.4 ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: pcov | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run unit tests | |
| run: vendor/bin/phpunit --testsuite unit | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| fail_ci_if_error: true | |
| files: phpunit.cobertura.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} |