Merge branch 'main' into develop #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Static Analysis" | |
on: | |
push: | |
pull_request: | |
jobs: | |
static-analysis: | |
name: "Static Analysis" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
composer-dependency-versions: | |
- "lowest" | |
- "highest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v3" | |
- name: "Setup PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
coverage: "none" | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.composer-dependency-versions }}" | |
- name: "Analyze code using PHP_CodeSniffer" | |
run: "vendor/bin/phpcs" | |
- name: "Analyze code using PHPStan" | |
run: "vendor/bin/phpstan" |