chore(deps): update phpstan packages to v2 (major) (#269) #1574
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
workflow_dispatch: | |
jobs: | |
phpunit: | |
name: "PHPUnit" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.2" | |
- "8.3" | |
dependency-versions: | |
- "highest" | |
include: | |
- dependency-versions: "lowest" | |
php-version: "8.2" | |
env: | |
CLICKHOUSE_VERSION: "23.12" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: "Build the docker compose stack" | |
run: "docker compose -f tests/docker-compose.yaml up -d" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
coverage: "pcov" | |
ini-values: "variables_order=EGPCS, zend.assertions=1" | |
extensions: json | |
- name: "Install dependencies with Composer" | |
uses: "ramsey/composer-install@v2" | |
with: | |
composer-options: "${{ matrix.composer-options }}" | |
dependency-versions: "${{ matrix.dependency-versions }}" | |
- name: "Run PHPUnit" | |
run: "vendor/bin/phpunit --coverage-clover=coverage.xml" | |
- name: "Upload coverage file" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "phpunit-${{ matrix.dependency-versions }}-${{ matrix.php-version }}.coverage" | |
path: "coverage.xml" | |
phpunit-with-clickhouse: | |
name: "PHPUnit" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.2" | |
clickhouse-version: | |
- "22.1" | |
- "22.2" | |
- "22.3" | |
- "22.4" | |
- "22.5" | |
- "22.6" | |
- "22.7" | |
- "22.8" | |
- "22.9" | |
- "22.10" | |
- "22.11" | |
- "22.12" | |
- "23.1" | |
- "23.2" | |
- "23.3" | |
- "23.4" | |
- "23.5" | |
- "23.6" | |
- "23.7" | |
- "23.8" | |
- "23.9" | |
dependency-versions: | |
- "highest" | |
env: | |
CLICKHOUSE_VERSION: ${{ matrix.clickhouse-version }} | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: "Build the docker compose stack" | |
run: "docker compose -f tests/docker-compose.yaml up -d" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
coverage: "none" | |
ini-values: "variables_order=EGPCS, zend.assertions=1" | |
extensions: json | |
- name: "Install dependencies with Composer" | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependency-versions }}" | |
- name: "Run PHPUnit" | |
run: "vendor/bin/phpunit" | |
upload_coverage: | |
name: "Upload coverage to Codecov" | |
runs-on: "ubuntu-latest" | |
needs: | |
- "phpunit" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: "Download coverage files" | |
uses: actions/download-artifact@v4 | |
with: | |
path: "reports" | |
- name: "Upload to Codecov" | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
directory: reports |