mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-06 07:33:14 +02:00
add phpstan
This commit is contained in:
parent
823f0d8d89
commit
f782aae4f7
18
.github/workflows/php-cs-fixer.yaml
vendored
Normal file
18
.github/workflows/php-cs-fixer.yaml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: "Linter: PHP"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.php'
|
||||
|
||||
jobs:
|
||||
php-cs-fixer:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: PHP-CS-Fixer
|
||||
uses: docker://oskarstark/php-cs-fixer-ga
|
||||
with:
|
||||
args: --dry-run
|
30
.github/workflows/phpstan.yaml
vendored
Normal file
30
.github/workflows/phpstan.yaml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Static analysis - phpstan
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.php'
|
||||
|
||||
jobs:
|
||||
phpstan:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.0'
|
||||
extensions: "json,memcached"
|
||||
ini-values: "memory_limit=-1"
|
||||
coverage: none
|
||||
|
||||
- name: Checkout target branch
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: 'Install project dependencies'
|
||||
run: |
|
||||
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
|
||||
|
||||
- name: phpstan
|
||||
run: |
|
||||
./vendor/bin/phpstan --no-interaction --no-progress
|
9
.github/workflows/phpunit.yaml
vendored
9
.github/workflows/phpunit.yaml
vendored
|
@ -40,10 +40,17 @@ jobs:
|
|||
php-version: "8.0"
|
||||
deps: "normal"
|
||||
|
||||
- symfony-require: "5.4.*"
|
||||
php-version: "8.1"
|
||||
deps: "normal"
|
||||
|
||||
- symfony-require: "6.0.*"
|
||||
php-version: "8.0"
|
||||
deps: "dev"
|
||||
deps: "normal"
|
||||
|
||||
- symfony-require: "6.0.*"
|
||||
php-version: "8.1"
|
||||
deps: "normal"
|
||||
|
||||
fail-fast: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue