Bump the dependencies group with 2 updates #2
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 Tests" | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| push: | |
| env: | |
| fail-fast: true | |
| jobs: | |
| phpunit: | |
| name: "PHPUnit - PHP ${{ matrix.php }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ["8.2", "8.3", "8.4"] | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v6" | |
| with: | |
| fetch-depth: 2 | |
| - name: "Install PHP" | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: curl,mbstring | |
| coverage: none | |
| tools: "composer:v2" | |
| - name: "Show PHP version" | |
| run: php -v && composer -V | |
| - name: "Cache Composer packages" | |
| uses: "actions/cache@v5" | |
| with: | |
| path: "~/.composer/cache" | |
| key: "php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}" | |
| restore-keys: "php-" | |
| - name: "Install dependencies" | |
| run: "composer install --prefer-dist --no-progress" | |
| - name: "Run PHPUnit Tests" | |
| run: "composer test" | |
| php-cs-fixer: | |
| name: "PHP-CS-Fixer" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v6" | |
| - name: "Install PHP" | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| coverage: none | |
| tools: "composer:v2" | |
| - name: "Cache Composer packages" | |
| uses: "actions/cache@v5" | |
| with: | |
| path: "~/.composer/cache" | |
| key: "php-cs-fixer-composer-${{ hashFiles('composer.json') }}" | |
| restore-keys: "php-cs-fixer-" | |
| - name: "Install dependencies" | |
| run: "composer install --prefer-dist --no-progress" | |
| - name: "Run PHP-CS-Fixer" | |
| run: "composer cs-check" | |
| phpstan: | |
| name: "PHPStan" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v6" | |
| - name: "Install PHP" | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| coverage: none | |
| tools: "composer:v2" | |
| - name: "Cache Composer packages" | |
| uses: "actions/cache@v5" | |
| with: | |
| path: "~/.composer/cache" | |
| key: "phpstan-composer-${{ hashFiles('composer.json') }}" | |
| restore-keys: "phpstan-" | |
| - name: "Install dependencies" | |
| run: "composer install --prefer-dist --no-progress" | |
| - name: "Run PHPStan" | |
| run: "vendor/bin/phpstan analyse" |