Improve Github Actions Workflows #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
| # Run coverage report and upload it to CodeClimate | |
| name: Coverage | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| coverage: | |
| name: coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 10 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| extensions: mbstring | |
| coverage: pcov | |
| - name: Install composer dependencies | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: "--prefer-dist --optimize-autoloader" | |
| - name: Build the code coverage report | |
| run: composer coverage:clover | |
| - name: Upload code coverage report | |
| uses: qltysh/qlty-action/coverage@v2 | |
| with: | |
| token: ${{ secrets.QLTY_COVERAGE_TOKEN }} | |
| files: clover.xml |