Merge pull request #520 from flohw/main #206
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: | |
| pull_request: | |
| jobs: | |
| check_composer: | |
| name: Check composer metadata | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: shivammathur/setup-php@v2 | |
| - name: Validate composer.json | |
| run: composer validate --strict --no-check-lock | |
| static_analysis: | |
| name: Static analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: none | |
| php-version: '8.4' | |
| - name: Install dependencies | |
| run: composer update --ansi --no-progress --prefer-dist --no-interaction | |
| - run: vendor/bin/phpstan analyze | |
| tests: | |
| name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [ '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| name_suffix: [''] | |
| stability: ['stable'] | |
| composer_flags: [''] | |
| include: | |
| - php: '8.1' | |
| name_suffix: ' (lowest deps)' | |
| stability: 'stable' | |
| composer_flags: '--prefer-lowest' | |
| - php: '8.4' | |
| name_suffix: ' (dev deps)' | |
| stability: 'dev' | |
| composer_flags: '' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: "none" | |
| php-version: "${{ matrix.php }}" | |
| - name: Configure stability | |
| if: "matrix.stability != 'stable'" | |
| run: composer config minimum-stability ${{ matrix.stability }} | |
| - name: Install dependencies | |
| run: composer update --ansi --no-progress --prefer-dist ${{ matrix.composer_flags }} | |
| - name: Run tests | |
| run: vendor/bin/phpunit -v --colors=always |