php-basics/.github/workflows/phpstan.yml

36 lines
657 B
YAML
Raw Normal View History

2023-11-21 22:17:39 +01:00
name: PHP Static Analyzer
2023-11-21 17:19:58 +01:00
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
2023-11-21 22:17:39 +01:00
permissions:
contents: read
2023-11-21 17:19:58 +01:00
jobs:
2023-11-21 22:17:39 +01:00
PHPStan:
name: PHPStan Scanner
2023-11-21 17:19:58 +01:00
runs-on: ubuntu-latest
2023-11-21 22:17:39 +01:00
permissions:
contents: read
security-events: write
actions: read
2023-11-21 17:19:58 +01:00
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
2023-11-21 22:17:39 +01:00
- name: Setup Environment
2023-11-21 17:19:58 +01:00
uses: php-actions/composer@v6
with:
command: update
php_version: "8.0"
2023-11-21 22:17:39 +01:00
- name: Run PHPStan
2023-11-21 17:19:58 +01:00
uses: php-actions/phpstan@v3
with:
path: src/
configuration: phpstan.dist.neon