Skip to content

Commit 880fc2c

Browse files
committed
add code coverage
1 parent e4e2316 commit 880fc2c

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/greetings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Greetings
1+
name: greetings
22

33
on: [pull_request, issues]
44

.github/workflows/pull_request.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check pull request
1+
name: pull request checks
22

33
on:
44
push:
@@ -25,5 +25,12 @@ jobs:
2525
uses: actions/checkout@v2
2626
- name: run build
2727
run: make build
28-
- name: run test
28+
- name: run tests
2929
run: make test
30+
- name: upload coverage to codecov.io
31+
uses: codecov/codecov-action@v2
32+
with:
33+
files: /tmp/coverage.out
34+
token: ${{ secrets.CODECOV_SECRET }}
35+
flags: unittests
36+
fail_ci_if_error: true

.github/workflows/push_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Push image to quay.io
1+
name: push to quay.io
22
on:
33
push:
44
branches: [ main ]

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
[![pull request](https://github.com/netobserv/flowlogs2metrics/actions/workflows/pull_request.yml/badge.svg?branch=main)](https://github.com/netobserv/flowlogs2metrics/actions/workflows/pull_request.yml)
3+
[![Push image to quay.io](https://github.com/netobserv/flowlogs2metrics/actions/workflows/push_image.yml/badge.svg)](https://github.com/netobserv/flowlogs2metrics/actions/workflows/push_image.yml)
4+
[![codecov](https://codecov.io/gh/netobserv/flowlogs2metrics/branch/main/graph/badge.svg?token=KMZKG6PRS9)](https://codecov.io/gh/netobserv/flowlogs2metrics)
5+
16
# Overview
27

38
**Flow-Logs to Metrics** (a.k.a. FL2M) is an **observability tool** that consumes raw **network flow-logs** and

0 commit comments

Comments
 (0)