-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1016 Bytes
/
ci.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
name: ci
on: [push, pull_request]
jobs:
ci:
name: Linux Swoole-${{ matrix.swoole }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
swoole:
[
5.0-php8.2,
5.0-php8.1,
5.0-php8.0,
4.8-php8.1,
4.8-php8.0,
4.8-php7.4,
]
env:
SWOOLE_DOCKER_VERSION: ${{ matrix.swoole }}
REDIS_SERVER_HOST: redis
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare
run: |
docker-compose -f ./.github/docker-compose.yml up -d
docker exec swoole php -v
docker exec swoole php -m
docker exec swoole php --ri swoole
docker exec swoole composer -V
docker exec swoole composer update --no-interaction --prefer-dist --no-progress
- name: Test
run: docker exec swoole composer test
- name: Print logs
if: failure()
run: cat example/.runtime/logs/*.log