fix: update CoversClass attribute to use fully qualified class name #4
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
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| tests: | |
| name: Test ${{ matrix.name_suffix }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: [ "8.1", "8.2", "8.3", "8.4" ] | |
| dependencies: [ "locked", "highest", "lowest" ] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: composer:v2 | |
| coverage: none | |
| - name: Install Composer dependencies | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| - name: Run PHPUnit tests | |
| run: composer test | |
| coverage: | |
| runs-on: ubuntu-latest | |
| name: Code Coverage Report | |
| needs: tests | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| extensions: libxml, simplexml, xdebug | |
| tools: composer:'2.8' | |
| - name: Install Composer dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Run PHPUnit tests with coverage | |
| run: composer test:coverage | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: code-coverage-report | |
| path: .build/coverage/clover.xml | |
| retention-days: 5 | |
| coverage-report: | |
| name: Report test coverage | |
| runs-on: ubuntu-latest | |
| needs: coverage | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Download coverage artifact | |
| id: download | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: code-coverage-report | |
| - name: Coveralls report | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| file: ${{ steps.download.outputs.download-path }}/clover.xml |