Skip to content

Commit 08e90fb

Browse files
authored
Merge pull request #8 from iruvan/add-ci-badges
ci: add test workflow and README status badges
2 parents 2928a16 + f8b85a6 commit 08e90fb

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v7
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v7
17+
with:
18+
go-version-file: go.mod
19+
20+
- name: Vet
21+
run: go vet ./...
22+
23+
- name: Test
24+
run: go test ./...

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# context-debug
22

3+
[![Test](https://github.com/iruvan/context-debug/actions/workflows/test.yml/badge.svg)](https://github.com/iruvan/context-debug/actions/workflows/test.yml)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/iruvan/context-debug)](https://goreportcard.com/report/github.com/iruvan/context-debug)
5+
[![Go Reference](https://pkg.go.dev/badge/github.com/iruvan/context-debug.svg)](https://pkg.go.dev/github.com/iruvan/context-debug)
6+
37
A tiny Go package for collecting per-dependency-call debug data (name,
48
request, response, error, duration) on a `context.Context`, so a service can
59
attach a debug trail to a request and return it only when debug mode is on —

0 commit comments

Comments
 (0)