diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c2caaa..27610b8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 diff --git a/README.md b/README.md index d32abbb..cf5284b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 8382c50..dd76ada 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/phpunitCoverage.xml b/phpunit.coverage.xml similarity index 65% rename from phpunitCoverage.xml rename to phpunit.coverage.xml index 0ad90bd..7664322 100644 --- a/phpunitCoverage.xml +++ b/phpunit.coverage.xml @@ -1,6 +1,17 @@ - + @@ -13,10 +24,7 @@ - - - src - + diff --git a/phpunit.dist.xml b/phpunit.dist.xml index bf720a4..e4073f6 100644 --- a/phpunit.dist.xml +++ b/phpunit.dist.xml @@ -24,9 +24,10 @@ + - + \ No newline at end of file