Skip to content

Commit

Permalink
Try and ignore php-cs-fixer warning for php8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cviebrock committed Nov 29, 2024
1 parent 4db5b07 commit 1d5b292
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.2, 8.3, 8.4]
php:
- version: 8.2
- version: 8.3
- version: 8.4
env: PHP_CS_FIXER_IGNORE_ENV=1
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
name: PHP ${{ matrix.php.version }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ matrix.php.version }}
tools: composer:v2, cs2pr
coverage: none
- name: Setup problem matchers for PHPUnit
Expand All @@ -32,12 +36,12 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-
key: dependencies-${{ matrix.php.version }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: dependencies-${{ matrix.php.version }}-${{ matrix.stability }}-composer-
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Check coding style
run: composer run style:check -- --format=checkstyle | cs2pr
run: ${{ matrix.php.env }} composer run style:check -- --format=checkstyle | cs2pr
- name: Check static analysis
run: composer run analyze -- --error-format=checkstyle | cs2pr
- name: Configure matchers for PHPUnit
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"mockery/mockery": "^1.4.4",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.28",
"phpstan/phpstan": "^2.0",
"staabm/annotate-pull-request-from-checkstyle": "^1.8"
"phpstan/phpstan": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 1d5b292

Please sign in to comment.