-
-
Notifications
You must be signed in to change notification settings - Fork 265
130 lines (120 loc) · 4.01 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: 'Tests'
on:
push:
branches:
- '6.x'
pull_request:
schedule:
- cron: '30 8 * * 1'
jobs:
tests:
name: 'Tests'
strategy:
matrix:
include:
- php: '8.1.0'
librdkafka: 'v1.7.0'
memcheck: '1'
- php: '8.0.0'
librdkafka: 'v1.7.0'
memcheck: '1'
- php: '7.4.0'
librdkafka: 'v1.7.0'
memcheck: '1'
- php: '8.1.0'
librdkafka: 'v1.7.0'
- php: '8.0.0'
librdkafka: 'v1.7.0'
- php: '7.4.0'
librdkafka: 'v1.7.0'
- php: '7.3.0'
librdkafka: 'v1.7.0'
- php: '8.1.0'
librdkafka: 'v1.6.1'
- php: '8.0.0'
librdkafka: 'v1.6.1'
- php: '7.4.0'
librdkafka: 'v1.6.1'
- php: '7.3.0'
librdkafka: 'v1.6.1'
- php: '8.1.0'
librdkafka: 'v1.5.3'
- php: '8.0.0'
librdkafka: 'v1.5.3'
- php: '7.4.0'
librdkafka: 'v1.5.3'
- php: '7.3.0'
librdkafka: 'v1.5.3'
- php: '8.1.0'
librdkafka: 'v1.4.4'
- php: '8.0.0'
librdkafka: 'v1.4.4'
- php: '7.4.0'
librdkafka: 'v1.4.4'
- php: '7.3.0'
librdkafka: 'v1.4.4'
- php: '8.1.0'
librdkafka: 'v1.0.1'
- php: '8.0.0'
librdkafka: 'v1.0.1'
- php: '7.4.0'
librdkafka: 'v1.0.1'
- php: '7.3.0'
librdkafka: 'v1.0.1'
- php: '8.1.0'
librdkafka: 'v0.11.6'
- php: '8.0.0'
librdkafka: 'v0.11.6'
- php: '7.4.0'
librdkafka: 'v0.11.6'
- php: '7.3.0'
librdkafka: 'v0.11.6'
- php: '7.2.0'
librdkafka: 'v0.11.6'
- php: '7.1.0'
librdkafka: 'v0.11.6'
- php: '7.0.0'
librdkafka: 'v0.11.6'
- php: '8.1.0'
librdkafka: 'master'
experimental: true
- php: '8.0.0'
librdkafka: 'master'
experimental: true
- php: '7.4.0'
librdkafka: 'master'
experimental: true
- php: '7.3.0'
librdkafka: 'master'
experimental: true
runs-on: 'ubuntu-20.04'
continue-on-error: ${{ !!matrix.experimental }}
env:
PHP_VERSION: ${{ matrix.php }}
LIBRDKAFKA_VERSION: ${{ matrix.librdkafka }}
MEMORY_CHECK: ${{ matrix.memcheck }}
TEST_KAFKA_BROKERS: kafka:9092
TEST_KAFKA_BROKER_VERSION: 2.6
steps:
- name: 'Check out repository'
uses: 'actions/checkout@v2'
with:
path: 'php-rdkafka'
- uses: actions/cache@v2
with:
path: ~/build-cache/php
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.memcheck }}
- uses: actions/cache@v2
with:
path: ~/build-cache/librdkafka
key: ${{ runner.os }}-${{ matrix.librdkafka }}
- name: 'Build librdkafka'
run: './php-rdkafka/.github/workflows/test/build-librdkafka.sh'
- name: 'Build PHP'
run: './php-rdkafka/.github/workflows/test/build-php.sh'
- name: 'Build php-rdkafka'
run: './php-rdkafka/.github/workflows/test/build-php-rdkafka.sh'
- name: 'Start Kafka'
run: './php-rdkafka/.github/workflows/test/start-kafka.sh'
- name: 'Run tests'
run: './php-rdkafka/.github/workflows/test/tests.sh'