Skip to content

Commit

Permalink
Updated to PHPStan level 9
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Nov 15, 2023
1 parent 79fe30a commit 183088b
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 74 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/phpstan-5.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/phpstan-7.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/phpstan-8.yaml

This file was deleted.

28 changes: 27 additions & 1 deletion .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,38 @@
name: Quality
name: Quality (PHPStan level 9)
on: push
jobs:
cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2
coverage: none
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v6
with:
args: --prefer-dist
php_version: '8.2'
- name: PHPStan
uses: php-actions/phpstan@v3
with:
path: src/
level: 9
php_version: '8.2'
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ Action contracts
This package brings interfaces for the action component with logging, line rejections and execution states.


[![Quality](https://github.com/php-etl/action-contracts/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/quality.yaml)
[![PHPStan level 5](https://github.com/php-etl/action-contracts/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-5.yaml)
[![PHPStan level 7](https://github.com/php-etl/action-contracts/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-7.yaml)
[![PHPStan level 8](https://github.com/php-etl/action-contracts/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-8.yaml)
[![Quality (PHPStan level 9)](https://github.com/php-etl/action-contracts/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/quality.yaml)
![PHP](https://img.shields.io/packagist/php-v/php-etl/action-contracts)

Documentation
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
excludePaths:
- src/ActionState.php

0 comments on commit 183088b

Please sign in to comment.