Lock file maintenance #1368
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | |
name: "Continuous Integration" | |
on: | |
pull_request: | |
push: | |
branches: | |
- "*.*.x" | |
- "renovate/*" | |
jobs: | |
phpunit: | |
name: "PHPUnit tests" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "lowest" | |
- "highest" | |
- "locked" | |
php-version: | |
- "8.1" | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
- "windows-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "pcov" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Tests" | |
run: "vendor/bin/phpunit" | |
static-analysis-phpstan: | |
name: "Static Analysis by PHPStan" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.1" | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "PHPStan" | |
run: "vendor/bin/phpstan analyse --memory-limit=-1" | |
static-analysis-psalm: | |
name: "Static Analysis by Psalm" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "psalm" | |
run: "vendor/bin/psalm --shepherd --stats" | |
mutation-tests: | |
name: "Mutation tests" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "xdebug" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1, zend.assertions=1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Infection" | |
run: "vendor/bin/roave-infection-static-analysis-plugin --threads=$(nproc)" | |
env: | |
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }} | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
compatibility: | |
name: "Test Compatibility" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
- "windows-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Test Compatibility" | |
run: "vendor/bin/phpunit test/compat" | |
demo-scripts: | |
name: "Check Demo Scripts" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Check Demo Scripts" | |
run: "test/demo/check-demo.sh" | |
benchmarks: | |
name: "Run benchmarks" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
- "windows-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Install PhpBench" | |
run: "composer require --with-all-dependencies --dev --prefer-stable --no-interaction --no-progress phpbench/phpbench:^1.1.1" | |
- name: "PhpBench" | |
run: "vendor/bin/phpbench run --progress=dots --iterations=1" | |
coding-standards: | |
name: "Check Coding Standards" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Coding Standard" | |
run: "vendor/bin/phpcs" | |
backward-compatibility: | |
name: "Check Backward Compatibility" | |
if: ${{github.event_name == 'pull_request'}} | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 0 | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
working-directory: "tools/roave-backward-compatibility-check" | |
- name: "BC Checks" | |
run: tools/roave-backward-compatibility-check/vendor/bin/roave-backward-compatibility-check --from=origin/${{ github.base_ref }} |