From bf0662538026aaca62dc851bb91d8d3ff1c5471a Mon Sep 17 00:00:00 2001 From: "Ricardo M." Date: Mon, 19 Aug 2024 21:51:34 +0000 Subject: [PATCH] chore: Install jacoco --- .github/codecov.yaml | 4 ++-- packages/catalog-generator/package.json | 2 +- packages/catalog-generator/pom.xml | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/codecov.yaml b/.github/codecov.yaml index d6d0eab66..5dbe8100e 100644 --- a/.github/codecov.yaml +++ b/.github/codecov.yaml @@ -2,7 +2,7 @@ codecov: flags: ui: paths: - - packages/ui + - packages/ui/coverage catalog-generator: paths: - - packages/catalog-generator + - packages/catalog-generator/target/jacoco diff --git a/packages/catalog-generator/package.json b/packages/catalog-generator/package.json index f2255dbe7..fa157c00d 100644 --- a/packages/catalog-generator/package.json +++ b/packages/catalog-generator/package.json @@ -18,7 +18,7 @@ }, "scripts": { "build": "yarn clean && yarn build:mvn && yarn build:default:catalog && yarn build:ts", - "build:mvn": "./mvnw clean install", + "build:mvn": "./mvnw clean install verify", "build:default:catalog": "./mvnw package; java -jar ./target/catalog-generator-0.0.1-SNAPSHOT.jar -o ./dist/camel-catalog -n \"Default Kaoto catalog\"", "build:ts": "node --loader ts-node/esm ./scripts/json-schema-to-typescript.mts", "lint": "yarn eslint \"scripts/**/*.{mts,ts}\"", diff --git a/packages/catalog-generator/pom.xml b/packages/catalog-generator/pom.xml index 072a9a4b6..5d2b0ceda 100644 --- a/packages/catalog-generator/pom.xml +++ b/packages/catalog-generator/pom.xml @@ -184,6 +184,26 @@ + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + prepare-agent + + prepare-agent + + + + report + test + + report + + + +