Skip to content

Commit 2a67944

Browse files
authored
Merge pull request #210 from aik099/connect-coverage-to-build
Connect to CodeCov.Io
2 parents fc6ddb4 + 6d45fc3 commit 2a67944

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,16 @@ jobs:
6060
6161
- name: Run tests
6262
run: |
63-
vendor/bin/phpunit -v
63+
vendor/bin/phpunit --log-junit junit.xml --coverage-clover build/logs/clover.xml
64+
65+
- name: Upload coverage to Codecov
66+
uses: codecov/codecov-action@v5
67+
if: ${{ !cancelled() }}
68+
with:
69+
token: ${{ secrets.CODECOV_TOKEN }}
70+
71+
- name: Upload test results to Codecov
72+
uses: codecov/test-results-action@v1
73+
if: ${{ !cancelled() }}
74+
with:
75+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Jira REST API Client
22

33
[![CI](https://github.com/chobie/jira-api-restclient/actions/workflows/tests.yml/badge.svg)](https://github.com/chobie/jira-api-restclient/actions/workflows/tests.yml)
4+
[![codecov](https://codecov.io/gh/console-helpers/jira-api-restclient/graph/badge.svg?token=IWqgUnNjFM)](https://codecov.io/gh/console-helpers/jira-api-restclient)
45

56
You all know that Jira supports REST API, right? It can be very useful, for example, during automation job creation and notification sending.
67

0 commit comments

Comments
 (0)