-
-
Notifications
You must be signed in to change notification settings - Fork 39
62 lines (60 loc) · 1.62 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
pull_request:
jobs:
PHPUnit:
name: PHPUnit (PHP ${{ matrix.php }} with ${{ matrix.extensions }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
php:
- "8.4"
- "8.3"
- "8.2"
- "8.1"
- "8.0"
- "7.4"
extensions:
- ""
- "uv-amphp/ext-uv@master"
- "uv-amphp/ext-uv@master, eio"
- "eio"
steps:
- uses: actions/checkout@v2
- name: Install libuv
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libuv1-dev
- name: Install ext-eio
if: matrix.os == 'ubuntu-latest' && (matrix.extensions == 'eio' || matrix.extensions == 'uv-amphp/ext-uv@master, eio')
run: sudo pecl install eio || sudo pecl install eio-beta
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
extensions: ${{ matrix.extensions }}
- run: composer install
- run: vendor/bin/phpunit --coverage-text --debug
PHPUnit-Docker:
name: PHPUnit (PHP ${{ matrix.php }} on Docker)
runs-on: ubuntu-latest
container:
image: wyrihaximusnet/php:${{ matrix.php }}-nts-alpine-slim-dev-root
strategy:
fail-fast: false
matrix:
php:
- "8.4"
- "8.3"
- "8.2"
- "8.1"
- "8.0"
- "7.4"
steps:
- uses: actions/checkout@v2
- run: composer install
- run: vendor/bin/phpunit --coverage-text