Skip to content

Commit ec072b2

Browse files
authored
Migrate to GitHub Actions (#78)
Travis CI is broken due to docker rate limit. This is one solution to resolve this.
1 parent 8722897 commit ec072b2

File tree

3 files changed

+30
-23
lines changed

3 files changed

+30
-23
lines changed

.github/workflows/go.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.17
20+
21+
- name: Build
22+
run: go build -v ./...
23+
24+
- name: Test
25+
run: |
26+
go test -v ./...
27+
docker build -t telefonica/prometheus-kafka-adapter .
28+
docker run -d --name test telefonica/prometheus-kafka-adapter
29+
if [ $(docker inspect -f {{.State.Status}} test) = "running" ]; then echo "OK"; exit 0; else echo "FAILED"; exit 1; fi

.travis.yml

-22
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# prometheus-kafka-adapter
22

3-
[![Build Status](https://travis-ci.org/Telefonica/prometheus-kafka-adapter.svg?branch=master)](https://travis-ci.org/Telefonica/prometheus-kafka-adapter)
3+
[![CI](https://github.com/Telefonica/prometheus-kafka-adapter/workflows/CI/badge.svg?event=push)](https://github.com/Telefonica/prometheus-kafka-adapter/actions)
44

55
Prometheus-kafka-adapter is a service which receives [Prometheus](https://github.com/prometheus) metrics through [`remote_write`](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write), marshal into JSON and sends them into [Kafka](https://github.com/apache/kafka).
66

0 commit comments

Comments
 (0)