Skip to content

Merge branch 'main' into develop #17

Merge branch 'main' into develop

Merge branch 'main' into develop #17

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"