Skip to content

Commit 448665b

Browse files
authored
Migrate to GitHub actions (#24)
Migrate to GitHub actions
2 parents c221d74 + b374494 commit 448665b

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

.github/workflows/go.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Go
2+
on: [push]
3+
jobs:
4+
test:
5+
name: Test
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Set up Go
9+
uses: actions/setup-go@v1
10+
with:
11+
go-version: 1.13
12+
id: go
13+
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v1
16+
17+
- name: Test
18+
run: make ci

.travis.yml

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

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# go-http-metrics [![Build Status][travis-image]][travis-url] [![Go Report Card][goreport-image]][goreport-url] [![GoDoc][godoc-image]][godoc-url]
1+
# go-http-metrics [![Build Status][github-actions-image]][github-actions-url] [![Go Report Card][goreport-image]][goreport-url] [![GoDoc][godoc-image]][godoc-url]
22

33
go-http-metrics knows how to measure http metrics in different metric formats, it comes with a middleware that will measure metrics of a Go net/http handler. The metrics measured are based on [RED] and/or [Four golden signals], follow standards and try to be measured in a efficient way.
44

@@ -202,8 +202,8 @@ BenchmarkMiddlewareHandler/benchmark_with_grouped_status_code.-4 1000000
202202
BenchmarkMiddlewareHandler/benchmark_with_predefined_handler_ID-4 1000000 1258 ns/op 256 B/op 6 allocs/op
203203
```
204204

205-
[travis-image]: https://travis-ci.org/slok/go-http-metrics.svg?branch=master
206-
[travis-url]: https://travis-ci.org/slok/go-http-metrics
205+
[github-actions-image]: https://github.com/slok/go-http-metrics/workflows/Go/badge.svg
206+
[github-actions-url]: https://github.com/slok/go-http-metrics/actions
207207
[goreport-image]: https://goreportcard.com/badge/github.com/slok/go-http-metrics
208208
[goreport-url]: https://goreportcard.com/report/github.com/slok/go-http-metrics
209209
[godoc-image]: https://godoc.org/github.com/slok/go-http-metrics?status.svg

0 commit comments

Comments
 (0)