Skip to content

test: add new clickhouse versions, remove old (y22) #1553

test: add new clickhouse versions, remove old (y22)

test: add new clickhouse versions, remove old (y22) #1553

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.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:
- "23.1"
- "23.2"
- "23.3"
- "23.4"
- "23.5"
- "23.6"
- "23.7"
- "23.8"
- "23.9"
- "23.10"
- "23.11"
- "23.12"
- "24.1"
- "24.2"
- "24.3"
- "24.4"
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