deps(deps): bump googleapis/release-please-action from 4 to 5 #22
Workflow file for this run
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: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: PHP ${{ matrix.php-version }} Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| - '8.5' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: curl, json, mbstring | |
| coverage: xdebug | |
| tools: composer:v2 | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: | | |
| { | |
| printf dir= | |
| composer config cache-files-dir | |
| } > "$GITHUB_OUTPUT" | |
| - name: Cache dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress --no-interaction | |
| - name: Run tests | |
| if: matrix.php-version != '8.2' | |
| run: composer test | |
| - name: Run tests with coverage | |
| if: matrix.php-version == '8.2' | |
| run: | | |
| echo "::group::Running PHPUnit with Coverage" | |
| vendor/bin/phpunit --coverage-text --coverage-html coverage-report --colors=never | |
| echo "::endgroup::" | |
| - name: Upload coverage report | |
| if: matrix.php-version == '8.2' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report | |
| path: coverage-report/ | |
| retention-days: 14 |