Skip to content

Commit 067da0c

Browse files
authored
Merge pull request #21 from go-webgpu/chore/codecov-badge
docs: replace static coverage badge with Codecov
2 parents 7e87b11 + e42f257 commit 067da0c

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ jobs:
145145
uses: codecov/codecov-action@v5
146146
with:
147147
token: ${{ secrets.CODECOV_TOKEN }}
148+
slug: go-webgpu/goffi
148149
files: ./coverage.txt
149150
flags: unittests
150151
name: codecov-goffi

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
- README: replaced static coverage badge with dynamic Codecov badge
12+
813
## [0.4.1] - 2026-03-02
914

1015
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# goffi - Zero-CGO FFI for Go
22

33
[![CI](https://github.com/go-webgpu/goffi/actions/workflows/ci.yml/badge.svg)](https://github.com/go-webgpu/goffi/actions)
4-
[![Coverage](https://img.shields.io/badge/coverage-89.6%25-brightgreen)](https://github.com/go-webgpu/goffi)
4+
[![codecov](https://codecov.io/gh/go-webgpu/goffi/graph/badge.svg)](https://codecov.io/gh/go-webgpu/goffi)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/go-webgpu/goffi)](https://goreportcard.com/report/github.com/go-webgpu/goffi)
66
[![GitHub release](https://img.shields.io/github/v/release/go-webgpu/goffi)](https://github.com/go-webgpu/goffi/releases)
77
[![Go version](https://img.shields.io/github/go-mod/go-version/go-webgpu/goffi)](https://github.com/go-webgpu/goffi/blob/main/go.mod)

codecov.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
codecov:
2+
branch: main
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "70...100"
8+
status:
9+
project:
10+
default:
11+
target: 80%
12+
threshold: 5%
13+
14+
ignore:
15+
- "examples/**/*"
16+
- "cmd/**/*"
17+
- "internal/testdata/**/*"
18+
19+
parsers:
20+
go:
21+
partials_as_hits: false
22+
23+
comment:
24+
layout: "header, diff, flags, components"
25+
behavior: default
26+
require_changes: false

0 commit comments

Comments
 (0)