-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d72be84
commit d2ee743
Showing
13 changed files
with
132 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Tests with Neo4j^5 on PHP^8 | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
db-tests-50-2204: | ||
runs-on: ubuntu-22.04 | ||
name: "Running Integration tests for PHP ${{ matrix.php-version }} on Neo4j ${{ matrix.neo4j-version }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
neo4j-version: ['5.1', '5.2', '5.3'] | ||
php-version: ['8.0', '8.1', '8.2'] | ||
|
||
services: | ||
neo4j: | ||
image: neo4j:${{ matrix.neo4j-version }} | ||
env: | ||
NEO4J_AUTH: neo4j/nothing123 | ||
NEO4J_PLUGINS: '["apoc"]' | ||
ports: | ||
- 7687:7687 | ||
- 7474:7474 | ||
options: >- | ||
--health-cmd "wget http://localhost:7474 || exit 1" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: mbstring, sockets | ||
coverage: xdebug | ||
ini-values: max_execution_time=0 | ||
|
||
- name: Install dependencies | ||
run: composer install --no-progress | ||
|
||
- name: Test with phpunit | ||
env: | ||
GDB_USERNAME: neo4j | ||
GDB_PASSWORD: nothing123 | ||
run: vendor/bin/phpunit --configuration phpunit.xml --testsuite "Database" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Bolt\tests; | ||
|
||
/** | ||
* Class ATest | ||
* @package Bolt\tests | ||
*/ | ||
class ATest extends \PHPUnit\Framework\TestCase | ||
{ | ||
public static function setUpBeforeClass(): void | ||
{ | ||
parent::setUpBeforeClass(); | ||
$user = getenv('GDB_USERNAME'); | ||
if (!empty($user)) | ||
$GLOBALS['NEO_USER'] = $user; | ||
$pwd = getenv('GDB_PASSWORD'); | ||
if (!empty($pwd)) | ||
$GLOBALS['NEO_PASS'] = $pwd; | ||
$host = getenv('GDB_HOST'); | ||
if (!empty($host)) | ||
$GLOBALS['NEO_HOST'] = $host; | ||
$port = getenv('GDB_PORT'); | ||
if (!empty($port)) | ||
$GLOBALS['NEO_PORT'] = $port; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters