-
-
Notifications
You must be signed in to change notification settings - Fork 17
52 lines (39 loc) · 1.17 KB
/
engine.yml
File metadata and controls
52 lines (39 loc) · 1.17 KB
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
48
49
50
51
52
name: engine
on:
push:
pull_request:
env:
RUN_BLOCKING_TESTS: true
jobs:
engine:
runs-on: ubuntu-latest
timeout-minutes: 5
container:
image: phpswoole/swoole:6.2.0-php8.4
strategy:
fail-fast: true
name: Engine Integration Tests
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Log trigger context
uses: ./.github/actions/log-trigger-context
- name: Setup PHP extensions
uses: ./.github/actions/setup-php
- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: /root/.composer/cache
key: composer-8.4-${{ hashFiles('composer.lock') }}
restore-keys: composer-8.4-
- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o
- name: Start test servers
run: |
rm -f /tmp/test-servers-ready
bin/test-servers.sh engine &
while [ ! -f /tmp/test-servers-ready ]; do sleep 1; done
- name: Execute integration tests
env:
TEST_SERVER_HOST: 127.0.0.1
run: vendor/bin/phpunit tests/Integration/Engine