Update dependency vimeo/psalm to v5.26.1 #241
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: "Test" | |
on: | |
pull_request: | |
branches: | |
- "master" | |
push: | |
branches: | |
- "master" | |
jobs: | |
mutation: | |
name: "Infection mutation testing" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
steps: | |
- uses: "shivammathur/setup-php@2.25.1" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- uses: "actions/checkout@v3" | |
- uses: "php-actions/composer@v6" | |
- env: | |
INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY }} | |
run: "vendor/bin/infection --min-msi=80" | |
phpstan: | |
name: "PHPStan static analysis" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
steps: | |
- uses: "shivammathur/setup-php@2.25.1" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- uses: "actions/checkout@v3" | |
- uses: "php-actions/composer@v6" | |
- run: "vendor/bin/phpstan analyse" | |
psalm: | |
name: "Psalm static analysis" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
steps: | |
- uses: "shivammathur/setup-php@2.25.1" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- uses: "actions/checkout@v3" | |
- uses: "php-actions/composer@v6" | |
- run: "vendor/bin/psalm --show-info=true --shepherd" | |
standards: | |
name: "PHP-CS-Fixer coding standards" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
steps: | |
- uses: "shivammathur/setup-php@2.25.1" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- uses: "actions/checkout@v3" | |
- uses: "php-actions/composer@v6" | |
- run: "vendor/bin/php-cs-fixer fix --dry-run -v" | |
unit: | |
name: "PHPUnit unit tests" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
steps: | |
- uses: "shivammathur/setup-php@2.25.1" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- uses: "actions/checkout@v3" | |
- uses: "php-actions/composer@v6" | |
- run: "vendor/bin/phpunit" |