Skip to content

Commit c23af7f

Browse files
updated test conf
1 parent 9347b29 commit c23af7f

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

.github/workflows/db-test-php-8.yml renamed to .github/workflows/tests.2004.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
tests:
10+
tests-2004:
1111
runs-on: ubuntu-20.04
1212
name: "Running Integration tests for PHP ${{ matrix.php-version }} on Memgraph"
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-version: ['8.0', '8.1']
16+
php-version: ['8.0']
1717

1818
services:
1919
memgraph:

.github/workflows/tests.2204.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests with a database PHP8
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
tests-2204:
11+
runs-on: ubuntu-22.04
12+
name: "Running Integration tests for PHP ${{ matrix.php-version }} on Memgraph"
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php-version: ['8.1', '8.2']
17+
18+
services:
19+
memgraph:
20+
image: memgraph/memgraph:latest
21+
ports:
22+
- 7687:7687
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php-version }}
32+
extensions: mbstring, sockets
33+
coverage: xdebug
34+
ini-values: max_execution_time=0
35+
36+
- name: Install dependencies
37+
run: composer install --no-progress
38+
39+
- name: Test with phpunit
40+
run: vendor/bin/phpunit --configuration phpunit.xml --testsuite "Database"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"stefanak-michal/bolt": "^6"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": ">=9"
15+
"phpunit/phpunit": "^9"
1616
},
1717
"support": {
1818
"source": "https://github.com/stefanak-michal/memgraph-bolt-wrapper"

0 commit comments

Comments
 (0)