Skip to content

Commit c29afa9

Browse files
committed
ci: Add Codecov coverage reporting
1 parent a810122 commit c29afa9

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ jobs:
2323
run: go vet ./...
2424

2525
- name: Test
26-
run: go test -v -race -count=1 ./...
26+
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic -count=1 ./...
27+
28+
- name: Upload coverage to Codecov
29+
uses: codecov/codecov-action@v5
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1>fleet-plan</h1>
44
<p><strong><code>terraform plan</code>, but for <a href="https://fleetdm.com/">Fleet</a>.</strong></p>
55

6-
[![codecov](https://codecov.io/gh/TsekNet/fleet-plan/branch/main/graph/badge.svg?token=9E0V5QX6G1)](https://codecov.io/gh/TsekNet/fleet-plan)
6+
[![codecov](https://codecov.io/gh/TsekNet/fleet-plan/branch/main/graph/badge.svg?token=b71fa5cb-b607-4c0f-9f55-76cfffe8a054)](https://codecov.io/gh/TsekNet/fleet-plan)
77
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
88
[![GitHub Release](https://img.shields.io/github/v/release/TsekNet/fleet-plan)](https://github.com/TsekNet/fleet-plan/releases)
99
</div>

0 commit comments

Comments
 (0)