Skip to content

Commit 1df3b45

Browse files
authored
ci: add codeclimate coverage (#36)
1 parent 1af5301 commit 1df3b45

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/integration-testing.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ on:
1010
- develop
1111
- main
1212
paths:
13-
- '**.php'
14-
- '.github/workflows/*.yml'
15-
- '!docs/**'
13+
- "**.php"
14+
- ".github/workflows/*.yml"
15+
- "!docs/**"
1616

1717
jobs:
1818
continuous_integration:
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
php: ["7.4", "8.0", "8.1"]
25-
wordpress: ["6.1", "6.0", "5.9" ]
25+
wordpress: ["6.1", "6.0", "5.9"]
2626
include:
2727
- php: "8.1"
2828
wordpress: "6.1"
@@ -79,3 +79,12 @@ jobs:
7979
env:
8080
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181
run: vendor/bin/php-coveralls -v
82+
83+
- name: Push CodeCoverage to CodeClimate
84+
if: ${{ matrix.coverage == 1 }}
85+
uses: paambaati/[email protected]
86+
env:
87+
CC_TEST_REPORTER_ID: ad47d548dc0d258507a0608664256e9c9f3ab9d91f32c59c6c688587e83e2610
88+
with:
89+
coverageLocations: |
90+
${{github.workspace}}/tests/_output/*.xml:clover

codeception.dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ settings:
1414
coverage:
1515
enabled: true
1616
remote: false
17-
c3_url: '%WP_URL%/wp-content/plugins/wp-graphql-rank-math/wp-graphql-rank-math.php'
17+
c3_url: '%WP_URL%/wp-content/plugins/wp-graphql-rank-math/wp-graphql-rank-math.php/'
1818
include:
1919
- src/*
2020
- access-functions.php

0 commit comments

Comments
 (0)