-
Notifications
You must be signed in to change notification settings - Fork 68
108 lines (82 loc) · 2.12 KB
/
test.yml
File metadata and controls
108 lines (82 loc) · 2.12 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Test
on: [push, pull_request]
jobs:
linux-php:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
[
5.4,
5.5,
5.6,
7.0,
"8.0"
]
env:
PHP_DOCKER_VERSION: ${{ matrix.php }}
steps:
- uses: actions/checkout@v1
- name: prepare
run: |
./.github/prepare-test.sh php
- name: test
run: docker exec php composer test
linux-swoole:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
swoole:
[
4.7-php7.2,
4.7-php7.3,
4.7-php7.4,
4.7-php8.0,
]
env:
SWOOLE_DOCKER_VERSION: ${{ matrix.swoole }}
steps:
- uses: actions/checkout@v1
- name: prepare
run: |
./.github/prepare-test.sh swoole
- name: test
run: docker exec swoole composer test
windows-x86:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: install php
run: |
.\.github/workflows/bin/install-php7.4-win-x86.ps1
- name: ffi test
run: |
[environment]::SetEnvironmentvariable("PATH", $([environment]::GetEnvironmentvariable("PATH", "Machine")))
composer update
phpunit -c ./tests/phpunit.xml
windows-x64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: install php
run: |
.\.github/workflows/bin/install-php7.4-win-x64.ps1
- name: ffi test
run: |
[environment]::SetEnvironmentvariable("PATH", $([environment]::GetEnvironmentvariable("PATH", "Machine")))
composer update
phpunit -c ./tests/phpunit.xml
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: install php
run: .github/workflows/bin/install-php7.4-mac.sh
- name: install swoole
run: sudo .github/workflows/bin/install-swoole4.5.sh
- name: swoole ffi test
run: |
composer update
sudo composer test