Merge pull request #2 from sudiptpa/chore/php82-ci-polish #5
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, master ] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [ '8.2', '8.3', '8.4', '8.5' ] | |
| deps: [ 'stable' ] | |
| include: | |
| - php: '8.2' | |
| deps: 'lowest' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: json, curl | |
| coverage: none | |
| - name: Validate composer.json | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: | | |
| if [ "${{ matrix.deps }}" = "lowest" ]; then | |
| composer update --prefer-lowest --prefer-stable --no-interaction --no-progress | |
| else | |
| composer install --no-interaction --no-progress --prefer-dist | |
| fi | |
| - name: Run tests | |
| run: vendor/bin/phpunit |