-
Notifications
You must be signed in to change notification settings - Fork 0
194 lines (163 loc) · 4.78 KB
/
03-phpunit.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
name: PHPUnit Tests
on:
pull_request:
push:
branches:
- main
jobs:
array-storage:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer Dependencies
run: composer install
- name: Run PHPUnit Tests
run: ./vendor/bin/phpunit --testsuite=array
opensearch-storage:
runs-on: ubuntu-latest
services:
opensearch:
image: opensearchproject/opensearch:1.0.0
options: >-
--health-cmd "curl -s http://localhost:9200/ -o /dev/null"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "9200:9200"
- "9300:9300"
env:
discovery.type: single-node
plugins.security.disabled: true
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer Dependencies
run: composer install
- name: Run PHPUnit Tests
run: ./vendor/bin/phpunit --testsuite=opensearch
dynamodb-storage:
runs-on: ubuntu-latest
services:
dynamodb:
image: amazon/dynamodb-local:latest
options: >-
--health-cmd "curl -s http://localhost:8000/shell/ -o /dev/null"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "6000:8000"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer Dependencies
run: composer install
- name: Run PHPUnit Tests
run: ./vendor/bin/phpunit --testsuite=dynamodb
mongodb-storage:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:4.4
options: >-
--health-cmd "mongo --eval \"printjson(db.serverStatus())\""
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "27017:27017"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer Dependencies
run: composer install
- name: Run PHPUnit Tests
run: ./vendor/bin/phpunit --testsuite=mongodb
redis-storage:
runs-on: ubuntu-latest
services:
redis:
image: redis:6.2
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "6379:6379"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer Dependencies
run: composer install
- name: Run PHPUnit Tests
run: ./vendor/bin/phpunit --testsuite=redis
mysql-storage:
runs-on: ubuntu-latest
services:
database:
image: mysql:8.0
env:
MYSQL_USER: shopware
MYSQL_PASSWORD: shopware
MYSQL_ROOT_PASSWORD: shopware
MYSQL_DATABASE: shopware
options: '--mount="type=tmpfs,destination=/var/lib/mysql" --health-cmd="mysqladmin ping -h 127.0.0.1" --health-interval=5s --health-timeout=2s --health-retries=3'
ports:
- "3306:3306"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer Dependencies
run: composer install
- name: Run PHPUnit Tests
run: ./vendor/bin/phpunit --testsuite=mysql
meilisearch-storage:
runs-on: ubuntu-latest
services:
meilisearch:
image: getmeili/meilisearch:latest
options: >-
--health-cmd "curl -s http://localhost:7700/ -o /dev/null"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "7700:7700"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer Dependencies
run: composer install
- name: Run PHPUnit Tests
run: ./vendor/bin/phpunit --testsuite=meilisearch