Merge https://github.com/DEVizzent/cebe-php-openapi #3
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| phpunit: | |
| name: Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| php: | |
| - "8.4" | |
| - "8.5" | |
| dependencies: | |
| - "lowest" | |
| - "highest" | |
| symfony-yaml: ["^6", "^7", "^8"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: pcov | |
| tools: composer:v2 | |
| - name: Require specific symfony/yaml version | |
| run: "composer require symfony/yaml:'${{ matrix.symfony-yaml }}' --no-interaction --ansi --no-install" | |
| - name: "Install dependencies with Composer" | |
| uses: ramsey/composer-install@v2 | |
| with: | |
| dependency-versions: "${{ matrix.dependencies }}" | |
| - name: Validate test data | |
| run: make lint | |
| - name: PHPUnit tests | |
| run: make test | |
| - name: Code coverage | |
| run: make coverage |