diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dffee68..bf69102 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,12 @@ jobs: ./gradlew --version - name: Test task with Gradle Wrapper run: | - ./gradlew --parallel --max-workers=4 test + ./gradlew --parallel --max-workers=4 build + - name: Create report file + if: success() + run: | + JAR_FILE=ls -al ./build/libs/ | tail -1 | awk '{print $9}' + java -jar ./build/libs/$JAR_FILE -d $(pwd) -p com.heowc.heo.core - name: If failure then upload test reports if: failure() uses: actions/upload-artifact@v4 diff --git a/src/main/java/com/heowc/heo/core/visualization/ReportVisualizationService.java b/src/main/java/com/heowc/heo/core/visualization/ReportVisualizationService.java index fb5473b..177f6a0 100644 --- a/src/main/java/com/heowc/heo/core/visualization/ReportVisualizationService.java +++ b/src/main/java/com/heowc/heo/core/visualization/ReportVisualizationService.java @@ -20,11 +20,10 @@ public void createFile(String report, String destination) { try { final File file = new File(destination); Graphviz.fromString(report) - .width(3000) .engine(Engine.DOT) .render(Format.PNG) .toFile(file); - logger.info("Report file created. path=file://{}", file.toPath()); + logger.info("Report file created (file://{})", file.toPath().toAbsolutePath()); } catch (IOException e) { logger.error("Report file creation failed", e); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1309002..b384f5b 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,5 @@ spring.shell.noninteractive.primary-command=heo + +logging.level.root=ERROR +logging.level.com.heowc.heo=INFO +logging.level.com.heowc.heo.HeoApp=ERROR