oai-pmh2/.github/workflows/phpstan.yml

37 lines
700 B
YAML
Raw Normal View History

2024-01-03 16:54:13 +01:00
name: PHP Static Analyzer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
PHPStan:
name: PHPStan Scanner
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Setup Environment
uses: php-actions/composer@v6
with:
2024-08-09 12:29:36 +02:00
command: install
2024-01-03 16:56:27 +01:00
php_version: "8.1"
2024-01-03 16:54:13 +01:00
- name: Run PHPStan
uses: php-actions/phpstan@v3
with:
2024-08-09 12:29:36 +02:00
path: bin/ public/ src/
php_version: "8.1"
2024-01-03 16:54:13 +01:00
configuration: phpstan.dist.neon