Skip to content

Commit

Permalink
IBX-8121: Added PHPStan/PHP-CS-Fixer cache for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p committed Apr 29, 2024
1 parent 53125da commit eb2c31a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ jobs:
with:
dependency-versions: highest

- uses: actions/cache@v3
with:
key: "${{ runner.os }}-php-cs-fixer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}"
path: .php-cs-fixer.cache
restore-keys: |
${{ runner.os }}-php-cs-fixer-${{ matrix.php }}-
${{ runner.os }}-php-cs-fixer-
- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr

Expand Down Expand Up @@ -62,6 +70,14 @@ jobs:
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- uses: actions/cache@v3
with:
key: "${{ runner.os }}-phpstan-${{ matrix.php }}-${{ hashFiles('composer.lock') }}"
path: var/phpstan
restore-keys: |
${{ runner.os }}-phpstan-${{ matrix.php }}-
${{ runner.os }}-phpstan-
- name: Run PHPStan analysis
run: composer run-script phpstan

Expand Down
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ includes:
parameters:
level: 8
treatPhpDocTypesAsCertain: false
tmpDir: var/phpstan
ignoreErrors:
-
message: "#^Cannot call method (fetchOne|fetchColumn|fetchAllAssociative|fetchAssociative|fetchAllKeyValue)\\(\\) on Doctrine\\\\DBAL\\\\ForwardCompatibility\\\\Result\\|int\\|string\\.$#"
Expand Down

0 comments on commit eb2c31a

Please sign in to comment.