Skip to content

Commit 0c5890e

Browse files
Grafeo test definition
1 parent 7a8d860 commit 0c5890e

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/grafeo.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests with Grafeo 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+
grafeo-tests:
10+
if: ${{ github.event.pull_request.draft == false }}
11+
runs-on: ubuntu-latest
12+
name: "Running Integration tests for PHP on Grafeo"
13+
14+
services:
15+
grafeo:
16+
image: grafeo/grafeo-server:bolt
17+
ports:
18+
- 7687:7687
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: '8.5'
28+
extensions: mbstring, sockets
29+
coverage: xdebug
30+
ini-values: max_execution_time=0, variables_order="EGPCS"
31+
32+
- name: Install dependencies
33+
run: composer install --no-progress
34+
35+
- name: Test with phpunit
36+
run: vendor/bin/phpunit --configuration phpunit.xml --testsuite "Grafeo"

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="Grafeo">
26+
<file>./tests/helpers/ClientTest.php</file>
27+
</testsuite>
2528
</testsuites>
2629
</phpunit>

0 commit comments

Comments
 (0)