Skip to content

Commit d9a94f4

Browse files
committed
chore:psalm-issue
1 parent c3484e7 commit d9a94f4

File tree

5 files changed

+60
-4
lines changed

5 files changed

+60
-4
lines changed

.github/workflows/codecov.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Code Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
coverage:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.1'
23+
24+
- name: Install dependencies
25+
run: composer install
26+
27+
- name: Run tests and collect coverage
28+
run: vendor/bin/phpunit --coverage-clover coverage.xml
29+
30+
- name: Upload coverage to Codecov
31+
uses: codecov/codecov-action@v5
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
files: ./coverage.xml
35+
fail_ci_if_error: true
36+
verbose: true

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Neo4j Query API client
22

3+
## Badges
4+
5+
![License](https://img.shields.io/github/license/nagels-tech/neo4j-query-api)
6+
![Tests](https://github.com/nagels-tech/neo4j-query-api/actions/workflows/tests.yml/badge.svg)
7+
![Version](https://img.shields.io/github/v/release/nagels-tech/neo4j-query-api)
8+
[![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)
9+
![Code Coverage](https://img.shields.io/codecov/c/github/nagels-tech/neo4j-query-api)
10+
![Downloads](https://img.shields.io/packagist/dt/nagels-tech/neo4j-query-api)
11+
12+
313
## Interact programmatically with Top Graph Technology
414

515
- Easy to start with, just build your client in one line and start running queries
@@ -147,4 +157,14 @@ If you discover any security-related issues, please email *[email protected]*
147157

148158
## License
149159

150-
The MIT License (MIT). Please see [License File](LICENSE) for more information.
160+
The MIT License (MIT). Please see [License File](LICENSE) for more information.
161+
162+
163+
## Badges
164+
165+
![License](https://img.shields.io/github/license/nagels-tech/neo4j-query-api)
166+
![Tests](https://github.com/nagels-tech/neo4j-query-api/actions/workflows/tests.yml/badge.svg)
167+
![Version](https://img.shields.io/github/v/release/nagels-tech/neo4j-query-api)
168+
![Code Quality](https://img.shields.io/codeclimate/maintainability/nagels-tech/neo4j-query-api)
169+
![Code Coverage](https://img.shields.io/codecov/c/github/nagels-tech/neo4j-query-api)
170+
![Downloads](https://img.shields.io/packagist/dt/nagels-tech/neo4j-query-api)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"require-dev": {
1313
"guzzlehttp/guzzle": "^7.9",
14-
"phpunit/phpunit": "^10.0",
14+
"phpunit/phpunit": "^12.0",
1515
"friendsofphp/php-cs-fixer": "^3.68",
1616
"vimeo/psalm": "^6.8",
1717
"dg/bypass-finals": "^1.9",

neo4j-query-api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit cc774c46121e94e11d003447e967ac63574dff5a

tests/Unit/Neo4jRequestFactoryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
use Neo4j\QueryAPI\Objects\Authentication;
1616
use RuntimeException;
1717

18-
19-
class Neo4jRequestFactoryTest extends TestCase
18+
final class Neo4jRequestFactoryTest extends TestCase
2019
{
2120
private RequestFactoryInterface&\PHPUnit\Framework\MockObject\MockObject $psr17Factory;
2221
private StreamFactoryInterface&\PHPUnit\Framework\MockObject\MockObject $streamFactory;

0 commit comments

Comments
 (0)