Skip to content

Commit 525d598

Browse files
committed
feat: enable codecov test analytics via junit reporter
1 parent f39fce6 commit 525d598

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ jobs:
3232
with:
3333
token: ${{ secrets.CODECOV_TOKEN }}
3434
slug: swapwarick/agent-diaries-sdk
35+
36+
- name: Upload test results to Codecov
37+
if: ${{ !cancelled() }}
38+
uses: codecov/test-results-action@v1
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
dist
33
.agent-diaries
44
TEST_RESULTS.md
5+
test-report.junit.xml

vitest.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export default defineConfig({
88
coverage: {
99
provider: 'v8',
1010
reporter: ['text', 'lcov', 'json']
11-
}
11+
},
12+
reporters: ['default', 'junit'],
13+
outputFile: 'test-report.junit.xml'
1214
},
1315
});

0 commit comments

Comments
 (0)