Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
--health-retries 5
--health-timeout 5s

name: Run PHPUnit Tests
name: Run PHPUnit Tests With Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -51,4 +51,11 @@ jobs:
NEO4J_ADDRESS: "http://localhost:7474"
NEO4J_USERNAME: "neo4j"
NEO4J_PASSWORD: "password"
run: vendor/bin/phpunit --configuration phpunit.dist.xml ./tests
run: vendor/bin/phpunit --configuration phpunit.coverage.xml ./tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage.xml
fail_ci_if_error: true
verbose: true
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Neo4j Query API client


![License](https://img.shields.io/github/license/nagels-tech/neo4j-query-api)
![Version](https://img.shields.io/github/v/release/nagels-tech/neo4j-query-api)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/2cb8a1e71ed04987b1c763a09e196c84)](https://app.codacy.com/gh/nagels-tech/neo4j-query-api/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![codecov](https://codecov.io/github/nagels-tech/neo4j-query-api/graph/badge.svg?token=NTHCFY38D7)]
[![PHP Tests](https://github.com/nagels-tech/neo4j-query-api/actions/workflows/test.yml/badge.svg)](https://github.com/nagels-tech/neo4j-query-api/actions/workflows/test.yml)
[![Psalm Static Analysis](https://github.com/nagels-tech/neo4j-query-api/actions/workflows/psalm.yml/badge.svg)](https://github.com/nagels-tech/neo4j-query-api/actions/workflows/psalm.yml)
## Interact programmatically with Top Graph Technology

- Easy to start with, just build your client in one line and start running queries
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"license" : "MIT",
"type": "library",
"name": "neo4j-php/query-api",
"description": "Easy to use class to run Cypher queries on the Query API",
Expand Down
20 changes: 14 additions & 6 deletions phpunitCoverage.xml → phpunit.coverage.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd">
<phpunit bootstrap="tests/bootstrap.php"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
failOnDeprecation="true"
failOnNotice="true"
failOnPhpunitDeprecation="true"
failOnIncomplete="true"
failOnEmptyTestSuite="true"
failOnRisky="true"
failOnSkipped="true"
failOnWarning="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnPhpunitDeprecations="true">
<!-- Define a basic testsuite -->
<testsuites>
<testsuite name="Default">
Expand All @@ -13,10 +24,7 @@
</include>
</source>

<coverage processUncoveredFiles="true">
<include>
<directory>src</directory>
</include>
<coverage>
<report>
<clover outputFile="./coverage/clover.xml"/>
<cobertura outputFile="./coverage/cobertura.xml"/>
Expand Down
3 changes: 2 additions & 1 deletion phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
</testsuite>
</testsuites>


<php>
<!-- <env name="NEO4J_ADDRESS" value="<put your address here>"/>-->
<!-- <env name="NEO4J_USERNAME" value="<put your name here>"/>-->
<!-- <env name="NEO4J_PASSWORD" value="<put your password here>"/>-->
</php>
</phpunit>
</phpunit>