Skip to content

ci: replace WhiteSource with Dependabot #127

ci: replace WhiteSource with Dependabot

ci: replace WhiteSource with Dependabot #127

# See continuous-integration.yml for sources.
name: "Code Quality"
on: [push, pull_request]
jobs:
static-analysis-phpstan:
name: "Static Analysis on PHP ${{ matrix.php-version }}"
runs-on: "ubuntu-22.04"
strategy:
matrix:
php-version:
- 8.1
- 8.2
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "json,ldap"
php-version: "${{ matrix.php-version }}"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse"
# Skip Psalm until we can get it working better with Symfony bundle configuration files.
# - name: "Run a static analysis with vimeo/psalm"
# run: "vendor/bin/psalm --output-format=github"