fix: silence pecl install #6
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: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: Run PHPUnit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Install ClickHouse | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg | |
curl -fsSL 'https://packages.clickhouse.com/rpm/lts/repodata/repomd.xml.key' | sudo gpg --dearmor -o /usr/share/keyrings/clickhouse-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/clickhouse-keyring.gpg] https://packages.clickhouse.com/deb stable main" | sudo tee /etc/apt/sources.list.d/clickhouse.list | |
sudo apt-get update | |
sudo apt-get install -y clickhouse-server clickhouse-client | |
sudo service clickhouse-server start | |
- name: Install SeasClick extension | |
run: | | |
sudo apt-get install -y php-pear php-dev gcc make | |
printf "\n" | sudo pecl install seasclick | |
env: | |
ACCEPT_PECL_LICENSE: 'yes' | |
- name: Enable SeasClick extension | |
run: echo "extension=SeasClick.so" | sudo tee /etc/php/8.3/cli/conf.d/30-seasclick.ini | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run PHPUnit | |
run: vendor/bin/phpunit |