-
Notifications
You must be signed in to change notification settings - Fork 34
37 lines (27 loc) · 983 Bytes
/
test.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
name: "Tests"
on: [pull_request]
jobs:
lint:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Setup Docker
run: docker compose up -d --build
- name: Wait for Server to be ready
run: sleep 10
- name: Run FPM Tests
run: docker compose exec fpm vendor/bin/phpunit --configuration phpunit.xml
- name: Run Swoole Tests
run: docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml
- name: Run Swoole Coroutine Tests
run: docker compose exec swoole-coroutine vendor/bin/phpunit --configuration phpunit.xml
- name: Run Swoole Compression Tests
run: docker compose exec swoole-compression vendor/bin/phpunit --configuration phpunit.xml