Skip to content

Commit 9335a93

Browse files
author
mlevitt30
committed
allow codecov to view test analytics
1 parent 7cd182d commit 9335a93

File tree

4 files changed

+82
-2
lines changed

4 files changed

+82
-2
lines changed

.github/workflows/coverage.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@ jobs:
2020
run: npm install
2121

2222
- name: Run tests
23-
run: npx jest --coverage
23+
run: npx jest --coverage --reporters=jest-junit
2424

2525
- name: Upload results to Codecov
2626
uses: codecov/codecov-action@v5
2727
with:
2828
token: ${{ secrets.CODECOV_TOKEN }}
29-
slug: luminosityleds/browser
29+
slug: luminosityleds/browser
30+
31+
- name: Upload test results to Codecov
32+
if: ${{ !cancelled() }}
33+
uses: codecov/test-results-action@v1
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Browser
2+
[![codecov](https://codecov.io/gh/luminosityleds/browser/graph/badge.svg?token=nbq2Y8WP3U)](https://codecov.io/gh/luminosityleds/browser)
3+
14
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
25

36
## Getting Started

package-lock.json

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"eslint": "^9",
3636
"eslint-config-next": "15.1.2",
3737
"jest": "^30.1.3",
38+
"jest-junit": "^16.0.0",
3839
"postcss": "^8",
3940
"tailwindcss": "^3.4.1",
4041
"ts-jest": "^29.4.1",

0 commit comments

Comments
 (0)