forked from graphaware/neo4j-php-client
-
Notifications
You must be signed in to change notification settings - Fork 8
65 lines (55 loc) · 1.46 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
name: phpunit
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4']
neo4j-versions: ['3.3', '3.4', '3.5', '4.0']
include:
- neo4j-versions: 3.3
bolt-version: 1
- neo4j-versions: 3.4
bolt-version: 2
- neo4j-versions: 3.5
bolt-version: 3
- neo4j-versions: 4.0
bolt-version: 4
services:
neo4j:
image: neo4j:${{ matrix.neo4j-versions }}
env:
NEO4J_AUTH: none
ports:
- 7687:7687
- 7474:7474
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Lint
run: composer lint
- name: Test
env:
BOLT_VERSION: ${{ matrix.bolt-version }}
run: composer test
- name: Coverage
uses: codecov/codecov-action@v1