Skip to content

Commit 7b35d0b

Browse files
authored
Merge pull request #1096 from thomasrockhu-codecov/th/add-test-analytics
chore: add Codecov test analytics
2 parents 5e053ff + 961894f commit 7b35d0b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ jobs:
6161
- name: Run tests with coverage
6262
run: |
6363
make cov
64-
64+
65+
- name: Upload test results to Codecov
66+
if: ${{ !cancelled() }} # Run even if tests fail
67+
uses: codecov/test-results-action@v1
68+
with:
69+
token: ${{ secrets.CODECOV_TOKEN }}
70+
6571
- name: Upload coverage reports to Codecov
6672
uses: codecov/codecov-action@v4.0.1
6773
with:

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ cov:
1616
--cov-config=.coveragerc \
1717
--cov uiautomator2 \
1818
--cov-report xml \
19-
--cov-report term
19+
--cov-report term \
20+
--junitxml=junit.xml -o junit_family=legacy
21+
2022

2123
sync:
2224
cd uiautomator2/assets; ./sync.sh; cd -

0 commit comments

Comments
 (0)