Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create merged coverage to html #1318

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -132,6 +132,17 @@ jobs:
with:
name: Test Results (previous stable Go)
path: junit.xml

- run: go tool covdata merge -o coverage-merged.out
- run: go tool cover -html=coverage-merged.out -o coverage.html

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: |
./coverage-merged.out
./coverage.html

test-on-arm64:
name: Run tests on arm64
Expand Down Expand Up @@ -160,6 +171,17 @@ jobs:
with:
name: Test Results (arm64)
path: junit.xml

- run: go tool covdata merge -o coverage-merged.out
- run: go tool cover -html=coverage-merged.out -o coverage.html

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: |
./coverage-merged.out
./coverage.html

- name: Show dmesg
if: failure()
Expand Down Expand Up @@ -197,3 +219,15 @@ jobs:
with:
name: Test Results (${{ matrix.version }})
path: junit.xml

- run: go tool covdata merge -o coverage-merged.out
- run: go tool cover -html=coverage-merged.out -o coverage.html

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: |
./coverage-merged.out
./coverage.html