-
Notifications
You must be signed in to change notification settings - Fork 41
59 lines (52 loc) · 1.36 KB
/
tests.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
name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
APP_ENV: ci
strategy:
max-parallel: 10
matrix:
php: [ '8.1', '8.2', '8.3' ]
sf_version: [ '5.4', '6.4', '7.1' ]
exclude:
- php: 8.1
sf_version: 7.1
steps:
- uses: actions/checkout@v2
- name: Validate composer-5.4.json
run: composer validate --strict
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Override Symfony version
run: composer run ci-symfony-install-version ${{ matrix.sf_version }}
- uses: php-actions/phpunit@v3
with:
configuration: phpunit.xml.dist
php_version: ${{ matrix.php }}
memory_limit: 1024M
version: 9
bootstrap: vendor/autoload.php
services:
neo4j:
image: neo4j:5.22
env:
NEO4J_AUTH: neo4j/testtest
options: >-
--hostname neo4j
--health-cmd "wget -q --method=HEAD http://localhost:7474 || exit 1"
--health-start-period "60s"
--health-interval "30s"
--health-timeout "15s"
--health-retries "5"
ports:
- 7474:7474
- 7687:7687