Repository navigation
58 lines (46 loc) · 1.5 KB
/
Copy pathengine.yml
File metadata and controls
58 lines (46 loc) · 1.5 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
53
54
55
56
57
58
name: engine
on:
push:
branches:
- 0.4
pull_request:
permissions:
contents: read
jobs:
engine:
runs-on: ubuntu-latest
timeout-minutes: 5
container:
image: ghcr.io/hypervel/components-ci:php${{ matrix.php }}-swoole6.2.2
strategy:
fail-fast: false
matrix:
php: ["8.4", "8.5"]
name: Engine Integration Tests (PHP ${{ matrix.php }})
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Log trigger context
uses: ./.github/actions/log-trigger-context
- name: Cache Composer dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /root/.composer/cache
key: composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}
restore-keys: composer-${{ matrix.php }}-
- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o
- name: Start test servers
uses: ./.github/actions/start-test-servers
with:
group: engine
- name: Execute integration tests
env:
TEST_SERVER_HOST: 127.0.0.1
run: |
vendor/bin/paratest tests/Integration/Engine
vendor/bin/paratest tests/Integration/HttpServer
vendor/bin/paratest tests/Integration/OpenTelemetry/Server
vendor/bin/paratest tests/Integration/Saloon