Skip to content

Commit e93de1a

Browse files
Add GitHub Actions workflow for PuppyGraph integration tests
1 parent 7a8d860 commit e93de1a

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/puppygraph.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Tests with PuppyGraph on PHP 8.5
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
branches: [ master ]
7+
8+
jobs:
9+
puppygraph-tests:
10+
if: ${{ github.event.pull_request.draft == false }}
11+
runs-on: ubuntu-latest
12+
name: "Running Integration tests for PHP on PuppyGraph"
13+
14+
services:
15+
puppygraph:
16+
image: puppygraph/puppygraph:stable
17+
env:
18+
PUPPYGRAPH_PASSWORD: puppygraph123
19+
ports:
20+
- 7687:7687
21+
- 8081:8081
22+
options: >-
23+
--health-cmd "curl -f http://localhost:8081/healthz || exit 1"
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v6
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: '8.5'
33+
extensions: mbstring, sockets
34+
coverage: xdebug
35+
ini-values: max_execution_time=0, variables_order="EGPCS"
36+
37+
- name: Install dependencies
38+
run: composer install --no-progress
39+
40+
- name: Test with phpunit
41+
env:
42+
GDB_USERNAME: puppygraph
43+
GDB_PASSWORD: puppygraph123
44+
run: vendor/bin/phpunit --configuration phpunit.xml --testsuite "PuppyGraph"

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
<file>./tests/NornicDBTest.php</file>
2323
<!-- <file>./tests/helpers/ClientTest.php</file> -->
2424
</testsuite>
25+
<testsuite name="PuppyGraph">
26+
<file>./tests/helpers/ClientTest.php</file>
27+
</testsuite>
2528
</testsuites>
2629
</phpunit>

0 commit comments

Comments
 (0)