Skip to content

Commit 5c396f9

Browse files
authored
chore: upload junit (#4)
1 parent b2494a6 commit 5c396f9

File tree

8 files changed

+15
-90
lines changed

8 files changed

+15
-90
lines changed

.github/workflows/check.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- main
1010
paths-ignore:
11-
- "example/**"
11+
- example/**
1212
- "**/*.md"
1313
- "**/*.yaml"
1414
push:
@@ -25,9 +25,16 @@ jobs:
2525
go-version: 1.22
2626
- name: 🧹 Lint
2727
uses: golangci/golangci-lint-action@v4
28+
- name: Install dependencies
29+
run: go install gotest.tools/gotestsum@latest
2830
- name: 🧪 Test
29-
run: go test -race -coverprofile=coverage.out -covermode=atomic
31+
run: gotestsum --junitfile junit.xml --format testdox -- -race -coverprofile=coverage.out -covermode=atomic
3032
- name: Upload coverage reports to Codecov
3133
uses: codecov/codecov-action@v4
3234
with:
3335
token: ${{ secrets.CODECOV_TOKEN }}
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# ide
2+
.vscode
3+
.trunk
4+
15
# tests
26
coverage.out
3-
coverage.html
7+
coverage.html
8+
junit.xml

.trunk/.gitignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.trunk/configs/.markdownlint.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.trunk/configs/.yamllint.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.trunk/configs/svgo.config.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

.trunk/trunk.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)