Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed Nov 24, 2023
1 parent 7d5b7e1 commit a41828c
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 31 deletions.
3 changes: 1 addition & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
comment: off
coverage:
status:
project:
default:
target: auto
threshold: 1%
removed_code_behavior: adjust_base
patch:
patch:
default:
informational: true
target: auto
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/codecov-main.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/go-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate PR - golang CI
name: GoLang CI
on:
pull_request:
branches: [ main ]
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: './go.mod'
- name: Check out code
uses: actions/checkout@v4
- name: Check go mod status
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: './go.mod'
- name: Check out code
uses: actions/checkout@v4
- name: Build
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/build.yml → .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Java CI

on: [push, pull_request]

on:
pull_request:
branches: [ main ]
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -17,3 +23,5 @@ jobs:
- name: Build with Maven
working-directory: java-components
run: mvn -V -B package -Dvalidate-format
- name: Codecov
uses: codecov/codecov-action@v3
3 changes: 1 addition & 2 deletions .github/workflows/kube-linter.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Kubernetes YAMLs with kube-linter
name: Validate Kubernetes YAMLs

on:
pull_request:
Expand All @@ -7,7 +7,6 @@ on:
- 'deploy/crds/base/**.ya?ml'
- 'deploy/operator/base/**.ya?ml'
- 'deploy/operator/config/**.ya?ml'

jobs:
kube-linter:
name: Kube linter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/minikube.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate PR - Minikube Tests
name: Minikube Tests
on:
pull_request:
branches: [ main ]
Expand Down
29 changes: 29 additions & 0 deletions java-components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,14 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jacoco</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -310,6 +318,27 @@
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.10</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<exclClassLoaders>*QuarkusClassLoader</exclClassLoaders>
<destFile>${project.build.directory}/jacoco-quarkus.exec</destFile>
<append>true</append>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<repositories>
Expand Down

0 comments on commit a41828c

Please sign in to comment.