Dev 3.0.0 #33
Workflow file for this run
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: "PHPUnit, PHPCS, PHPStan Tests" | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
jobs: | |
phpunit: | |
name: "PHPUnit tests" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v3" | |
- name: "Setup Job with PHP version ${{ matrix.php-version }}" | |
uses: "./.github/actions" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- name: "Test with lowest dependencies" | |
run: | | |
composer update --prefer-lowest --no-interaction --no-progress | |
vendor/bin/phpunit tests/ | |
- name: "Test with highest dependencies" | |
run: | | |
composer update --no-interaction --no-progress | |
vendor/bin/phpunit tests/ | |
infection: | |
name: "Mutation testing" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: ["8.2"] | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v3" | |
- name: "Setup Job with PHP version ${{ matrix.php-version }}" | |
uses: "./.github/actions" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- name: "Mutating testing" | |
run: | | |
composer update --no-interaction --no-progress | |
vendor/bin/infection -j4 --only-covered | |
phpstan: | |
name: "PHPStan static code analysis" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v3" | |
- name: "Setup Job with PHP version 8.2" | |
uses: "./.github/actions" | |
with: | |
php-version: "8.2" | |
- name: "Static code analysis" | |
run: | | |
composer install --no-interaction --no-progress | |
vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr | |
phpcs: | |
name: "PHP Code Sniffer static code analysis" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v3" | |
- name: "Setup Job with PHP version 8.2" | |
uses: "./.github/actions" | |
with: | |
php-version: "8.2" | |
- name: "Static code analysis" | |
run: | | |
composer install --no-interaction --no-progress | |
vendor/bin/phpcs -q --report=checkstyle src | cs2pr |