From 643728696dc34bf36083e09fc6ac9b5ad0de7829 Mon Sep 17 00:00:00 2001 From: Michiel de Mare Date: Wed, 18 Sep 2024 13:22:14 +0200 Subject: [PATCH] Save log file as github artifact --- .github/workflows/e2e.yml | 6 ++++++ project.clj | 2 ++ resources/logback.xml | 2 +- test/resources/logback.xml | 40 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 test/resources/logback.xml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 06805dd7..c47e14d2 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -53,3 +53,9 @@ jobs: TRUSTSTORE: truststore.jks TRUSTSTORE_PASSWORD: ${{ secrets.TRUSTSTORE_PASSWORD }} run: lein test :e2e + + - name: Upload log file + uses: actions/upload-artifact@v3 + with: + name: test.log + path: logs/test.log diff --git a/project.clj b/project.clj index 73ddf866..667ae20f 100644 --- a/project.clj +++ b/project.clj @@ -78,6 +78,8 @@ ;; i.e. cider-nrepl and refactor-nrepl generally have ;; conflicting transitive dependencies. :test {:pedantic? :abort + :jvm-opts ["-Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener" + "-Dlogback.configurationFile=./test/resources/logback.xml"] :dependencies [[pjstadig/humane-test-output "RELEASE"]] :injections [(require 'pjstadig.humane-test-output) (pjstadig.humane-test-output/activate!)]} diff --git a/resources/logback.xml b/resources/logback.xml index b758e8ab..4492edbd 100644 --- a/resources/logback.xml +++ b/resources/logback.xml @@ -1,6 +1,6 @@ + + logs/test.log + + + + yyyy-MM-dd'T'HH:mm:ss.SSS'Z' + UTC + true + + false + + + + + + + + + + + + + + + + + +