Skip to content

chore: clean up

chore: clean up #9

Workflow file for this run

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
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
env:
APP_ENV: ci
run: vendor/bin/phpunit