Skip to content

Commit 4c9ec9f

Browse files
committed
move coverage to normal test
1 parent eef26d6 commit 4c9ec9f

File tree

3 files changed

+21
-39
lines changed

3 files changed

+21
-39
lines changed

.github/workflows/codecov.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,11 @@ jobs:
5151
NEO4J_ADDRESS: "http://localhost:7474"
5252
NEO4J_USERNAME: "neo4j"
5353
NEO4J_PASSWORD: "password"
54-
run: vendor/bin/phpunit --configuration phpunit.dist.xml ./tests
54+
run: vendor/bin/phpunit --configuration phpunit.coverage.xml ./tests
55+
- name: Upload coverage to Codecov
56+
uses: codecov/codecov-action@v5
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+
files: ./coverage/coverage.xml
60+
fail_ci_if_error: true
61+
verbose: true

phpunitCoverage.xml renamed to phpunit.coverage.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd">
2+
<phpunit bootstrap="tests/bootstrap.php"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
failOnDeprecation="true"
6+
failOnNotice="true"
7+
failOnPhpunitDeprecation="true"
8+
failOnIncomplete="true"
9+
failOnEmptyTestSuite="true"
10+
failOnRisky="true"
11+
failOnSkipped="true"
12+
failOnWarning="true"
13+
displayDetailsOnTestsThatTriggerDeprecations="true"
14+
displayDetailsOnPhpunitDeprecations="true">
415
<!-- Define a basic testsuite -->
516
<testsuites>
617
<testsuite name="Default">

0 commit comments

Comments
 (0)