-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1002 Bytes
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Testing
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
tests:
name: Testing
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 1
matrix:
php-version: [ '8.2', '8.3' ]
clickhouse: [ '24.6' ]
services:
rabbitmq:
image: itzg/rabbitmq-stomp
ports:
- 61614:61613
clickhouse:
image: clickhouse/clickhouse-server:${{ matrix.clickhouse }}
ports:
- 18123:8123
steps:
- uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: sockets,pcntl,event
- name: Composer install
run: composer install
- name: Testing
run: php vendor/phpunit/phpunit/phpunit --display-warnings
env:
RABBIT_STOMP_PORT: 61614
CLICKHOUSE_PORT: 18123