9
9
jobs :
10
10
tests :
11
11
runs-on : ubuntu-latest
12
- env :
13
- NEO4J_CONNECTIONS : bolt://neo4j:test@localhost,http://neo4j:test@localhost
14
- name : " Running Integration tests for PHP 7.4 on Neo4j ${{ matrix.neo4j-version }} with simple config"
12
+ name : " Running Testkit tests for PHP ${{matrix.php-version}} on Neo4j and testkit ${{ matrix.neo4j-version }} with simple config"
15
13
strategy :
16
14
fail-fast : false
17
15
matrix :
@@ -29,28 +27,46 @@ jobs:
29
27
- 7474:7474
30
28
options : >-
31
29
--health-cmd "wget http://localhost:7474 || exit 1"
32
- testkit-backend :
33
- image : php:${{ matrix.neo4j-version }}
34
- env :
35
- NEO4J_AUTH : neo4j/test
36
- NEO4JLABS_PLUGINS : ' ["apoc"]'
37
- ports :
38
- - 7687:7687
39
- - 7474:7474
40
- options : >-
41
- --health-cmd "wget http://localhost:7474 || exit 1"
42
30
43
31
steps :
44
- - uses : actions/checkout@v2
45
- - uses : php-actions/composer@v6
32
+ - name : Checkout driver
33
+ uses : actions/checkout@v2
34
+
35
+ - name : Setup PHP
36
+ uses : shivammathur/setup-php@v2
46
37
with :
47
- progress : yes
48
- php_version : 7.4
49
- version : 2
50
- - uses : php- actions/phpunit@v3
38
+ php-version : ${{ matrix.php-version }}
39
+
40
+ - name : Checkout TestKit (testing tool)
41
+ uses : actions/checkout@v2
51
42
with :
52
- configuration : phpunit.xml.dist
53
- php_version : 7.4
54
- php_extensions : bcmath
55
- bootstrap : vendor/autoload.php
56
- args : --testsuite "Integration"
43
+ repository : neo4j-drivers/testkit
44
+ path : testkit
45
+
46
+ - name : Install dependencies
47
+ run : |
48
+ sudo apt-get update
49
+ # install docker
50
+ sudo apt-get install \
51
+ apt-transport-https \
52
+ ca-certificates \
53
+ curl \
54
+ gnupg \
55
+ lsb-release
56
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
57
+ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
58
+ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
59
+ sudo apt-get update
60
+ sudo apt-get install docker-ce docker-ce-cli containerd.io
61
+ # Python (needed for dummy driver and TestKit)
62
+ sudo apt-get install python3 python3-pip
63
+
64
+ - name : Run TestKit
65
+ env :
66
+ TEST_NEO4J_HOST : localhost
67
+ TEST_NEO4J_USER : neo4j
68
+ TEST_NEO4J_PASS : test
69
+ TEST_DRIVER_NAME : php
70
+ run : |
71
+ cd testkit
72
+ python3 -m unittest -v "tests.neo4j.test_authentication.TestAuthenticationBasic"
0 commit comments