-
Notifications
You must be signed in to change notification settings - Fork 53
72 lines (60 loc) · 1.69 KB
/
test.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
63
64
65
66
67
68
69
70
71
72
name: 'Tests'
on:
push:
branches:
- v3
pull_request:
schedule:
- cron: '30 8 * * 1'
jobs:
tests:
name: 'Tests'
strategy:
matrix:
include:
- php: '8.1.0'
os: 'ubuntu-20.04'
expect_native: 1
werror: 1
xdebug: '3.1.2'
- php: '8.1.0'
os: 'macos-10.15'
xdebug: '3.1.2'
- php: '8.0.0'
os: 'ubuntu-20.04'
expect_native: 1
xdebug: '3.1.2'
- php: '7.4.0'
os: 'ubuntu-20.04'
expect_native: 1
xdebug: '3.1.2'
- php: '7.3.0'
os: 'ubuntu-20.04'
expect_native: 1
xdebug: '3.1.2'
runs-on: ${{ matrix.os }}
continue-on-error: ${{ !!matrix.experimental }}
env:
PHP_VERSION: ${{ matrix.php }}
PHP_TAG: ${{ matrix.tag }}'
MEMORY_CHECK: ${{ matrix.memcheck }}'
WERROR: ${{ matrix.werror }}'
MEMPROF_EXPECT_NATIVE_TRACKING: ${{ matrix.expect_native }}
XDEBUG_VERSION: ${{ matrix.xdebug }}
steps:
- name: 'Check out repository'
uses: 'actions/checkout@v4'
with:
path: 'ext'
- uses: 'actions/cache@v3'
with:
path: '~/build-cache/php'
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.memcheck }}
- name: 'Build PHP'
run: './ext/.github/workflows/test/build-php.sh'
- name: 'Install xdebug'
run: './ext/.github/workflows/test/build-xdebug.sh'
- name: 'Build extension'
run: './ext/.github/workflows/test/build-extension.sh'
- name: 'Run tests'
run: './ext/.github/workflows/test/tests.sh'