Skip to content

Commit

Permalink
feature: init
Browse files Browse the repository at this point in the history
  • Loading branch information
heowc committed May 1, 2024
1 parent 3037c35 commit 494cba8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 494cba8

Please sign in to comment.