Surface Packagist API errors as warnings in the release workflow #3
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.2', '8.3', '8.4', '8.5'] | |
| name: PHP ${{ matrix.php }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: curl | |
| coverage: none | |
| - name: Validate composer.json | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer update --no-interaction --no-progress | |
| - name: Run tests | |
| run: vendor/bin/phpunit | |
| lowest-dependencies: | |
| runs-on: ubuntu-latest | |
| name: PHP 8.2 (lowest dependencies) | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| extensions: curl | |
| coverage: none | |
| - name: Install lowest dependencies | |
| run: composer update --no-interaction --no-progress --prefer-lowest --prefer-stable | |
| - name: Run tests | |
| run: vendor/bin/phpunit | |
| coverage: | |
| runs-on: ubuntu-latest | |
| name: Coverage | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| extensions: curl | |
| coverage: pcov | |
| - name: Install dependencies | |
| run: composer update --no-interaction --no-progress | |
| - name: Run tests with coverage | |
| run: vendor/bin/phpunit --coverage-text |