-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.46 KB
/
ci-unit-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
name: Unit Tests
on:
- push
- fork
- pull_request
jobs:
tests:
runs-on: ubuntu-latest
name: "Unit tests for PHP ${{ matrix.php-version }} & Neo4j ${{ matrix.neo4j-version }}"
container: ubuntu
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
neo4j-version: ['4.4', '5.1.0', '5.13.0']
env:
ENABLE_FEATURE_TEST: true
NEO4J_VERSION: ${{ matrix.neo4j-version }}
services:
neo4j:
image: neo4j:${{ matrix.neo4j-version }}-enterprise
env:
NEO4J_AUTH: neo4j/password
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
ports:
- "7474:7474"
- "7687:7687"
steps:
- uses: actions/checkout@v2
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- run: composer install --ignore-platform-req=php
shell: bash
- run: composer test
shell: bash
- run: cat ./tests/test.log
shell: bash