Skip to content

Commit

Permalink
Display codecov results in pull requests (#705)
Browse files Browse the repository at this point in the history
Co-authored-by: Marius Oehler <[email protected]>
  • Loading branch information
arolfes and mariusoe authored Apr 30, 2020
1 parent 6817916 commit 0e248e4
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 15 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/agent_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test agent
name: Java Agent Tests

on:
pull_request:
push:
branches:
- master
paths:
Expand All @@ -14,8 +14,8 @@ on:
- '!.github/workflows/configurationserver_test.yml'
- '!.github/workflows/eumserver_test.yml'
- '!*.md'
push:
branches-ignore:
pull_request:
branches:
- master
paths:
- '.github/workflows/agent_test.yml'
Expand All @@ -27,9 +27,10 @@ on:
- '!.github/workflows/configurationserver_test.yml'
- '!.github/workflows/eumserver_test.yml'
- '!*.md'

jobs:
pr-check:
name: ${{ matrix.dockerimage }}
name: 'Testing on ${{ matrix.dockerimage }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -62,7 +63,9 @@ jobs:
uses: codecov/codecov-action@v1
with:
file: ./build/reports/jacoco/report.xml
fail_ci_if_error: true
jmh-compile:
name: Compile JMH Tests
runs-on: ubuntu-latest
container: openjdk:8-jdk
steps:
Expand All @@ -72,6 +75,7 @@ jobs:
- name: jmhCompile
run: ./gradlew jmhCompile
attach-alpine-jdk8:
name: Testing Runtime Attachment
runs-on: ubuntu-latest
container: openjdk:8-jdk-alpine
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/configuration_ui_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Configuration UI
name: Configuration UI Tests

on:
pull_request:
Expand All @@ -7,6 +7,7 @@ on:

jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
working-directory: ./components/inspectit-ocelot-configurationserver-ui
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/configurationserver_test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Configuration Server
name: Configuration Server Tests

on:
push:
branches-ignore:
branches:
- master
paths:
- '.github/workflows/configurationserver_test.yml'
Expand All @@ -17,7 +17,7 @@ on:
- '!components/inspectit-ocelot-configurationserver/README.md'
jobs:
test:
name: test-against-openjdk-8
name: Assemble & Test
runs-on: ubuntu-latest
env:
working-directory: ./components/inspectit-ocelot-configurationserver
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/eumserver_test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test eum Server
name: EUM Server Tests

on:
push:
branches-ignore:
branches:
- master
paths:
- '.github/workflows/eumserver_test.yml'
Expand All @@ -19,7 +19,7 @@ on:
- '!components/inspectit-ocelot-eum-server/README.md'
jobs:
test:
name: test-against-openjdk-8
name: Assemble & Test
runs-on: ubuntu-latest
env:
working-directory: ./components/inspectit-ocelot-eum-server
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# inspectIT Ocelot

[![Build Status](https://circleci.com/gh/inspectIT/inspectit-ocelot.svg?style=svg)](https://circleci.com/gh/inspectIT/inspectit-ocelot)
[![Java Agent Tests](https://github.com/inspectIT/inspectit-ocelot/workflows/Java%20Agent%20Tests/badge.svg?branch=master)](https://github.com/inspectIT/inspectit-ocelot/actions?query=workflow%3A"Java+Agent+Tests")
[![Configuration Server Tests](https://github.com/inspectIT/inspectit-ocelot/workflows/Configuration%20Server%20Tests/badge.svg?branch=master)](https://github.com/inspectIT/inspectit-ocelot/actions?query=workflow%3A"Configuration+Server+Tests")
[![EUM Server Tests](https://github.com/inspectIT/inspectit-ocelot/workflows/EUM%20Server%20Tests/badge.svg?branch=master)](https://github.com/inspectIT/inspectit-ocelot/actions?query=workflow%3A"EUM+Server+Tests")
[![Code Coverage](https://codecov.io/gh/inspectit/inspectit-ocelot/branch/master/graph/badge.svg)](https://codecov.io/gh/inspectIT/inspectit-ocelot)

[inspectIT Ocelot](https://inspectit.rocks/) is a zero-configuration Java agent for dynamically collecting application performance,
Expand Down
6 changes: 4 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
comment: off
comment:
layout: "diff, files"
behavior: once
require_changes: false
coverage:
precision: 2
round: nearest
Expand All @@ -10,4 +13,3 @@ coverage:
patch:
default:
target: 25%

0 comments on commit 0e248e4

Please sign in to comment.