Skip to content

chore(deps): update dependency infection/infection to ^0.27.0 (#197) #1342

chore(deps): update dependency infection/infection to ^0.27.0 (#197)

chore(deps): update dependency infection/infection to ^0.27.0 (#197) #1342

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- "master"
workflow_dispatch:
jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.1"
- "8.2"
dependency-versions:
- "highest"
include:
- dependency-versions: "lowest"
php-version: "8.1"
env:
CLICKHOUSE_VERSION: "22.4"
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@v3
with:
name: "phpunit-${{ matrix.deps }}-${{ matrix.php-version }}.coverage"
path: "coverage.xml"
phpunit-with-clickhouse:
name: "PHPUnit"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.1"
clickhouse-version:
- "21.7"
- "21.8"
- "21.9"
- "21.10"
- "21.11"
- "21.12"
- "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"
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: "pcov"
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 --coverage-clover=coverage.xml"
- name: "Upload coverage file"
uses: actions/upload-artifact@v3
with:
name: "phpunit-${{ matrix.deps }}-${{ matrix.php-version }}.coverage"
path: "coverage.xml"
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@v3
with:
path: "reports"
- name: "Upload to Codecov"
uses: codecov/codecov-action@v3
with:
directory: reports