-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (75 loc) · 2.05 KB
/
php.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
name: PHP
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
permissions:
contents: read
jobs:
arango_3_11:
runs-on: ubuntu-latest
env:
ARANGO_SERVER: 3.11.8
services:
arangodb:
image: 'arangodb/arangodb:3.11.8'
ports:
- 8529:8529
env:
ARANGO_ROOT_PASSWORD: testing
strategy:
fail-fast: false
matrix:
php-versions: ['8.2', '8.3']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Check out repository code
uses: actions/checkout@v3
- name: Add testing configuration
run: cp .env.testing .env
- name: Add ArangoDB version to .env
run: echo -e "\nARANGODB_VERSION=$ARANGO_SERVER" >> .env
- name: Install dependencies
run: composer install --no-interaction
- name: Wait ArangoDB to init
run: sleep 30
- name: Run tests suites
run: vendor/bin/phpunit -c phpunit.xml
arango_3_12:
runs-on: ubuntu-latest
env:
ARANGO_SERVER: 3.12.0
services:
arangodb:
image: 'arangodb/arangodb:3.12.0'
ports:
- 8529:8529
env:
ARANGO_ROOT_PASSWORD: testing
strategy:
fail-fast: false
matrix:
php-versions: ['8.2', '8.3']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Check out repository code
uses: actions/checkout@v3
- name: Add testing configuration
run: cp .env.testing .env
- name: Add ArangoDB version to .env
run: echo -e "\nARANGODB_VERSION=$ARANGO_SERVER" >> .env
- name: Install dependencies
run: composer install --no-interaction
- name: Wait ArangoDB to init
run: sleep 30
- name: Run tests suites
run: vendor/bin/phpunit -c phpunit.xml