From afa0c1908f96ff593af48a92e077553e1f7283eb Mon Sep 17 00:00:00 2001 From: fr33m0nk Date: Fri, 23 Feb 2024 22:44:36 +0530 Subject: [PATCH] [fr33m0nk]: Fix CI --- .github/workflows/clojure.yml | 4 +++- build.clj | 2 +- deps.edn | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 69bb0dd..0c94515 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -22,5 +22,7 @@ jobs: uses: DeLaGuardo/setup-clojure@12.3 with: cli: latest - - name: run tests & build jar + - name: Run tests + run: clojure -A:dev:test -X:test + - name: Build jar run: clojure -A:deps:dev:test -T:build ci diff --git a/build.clj b/build.clj index e58ecea..04aeaca 100644 --- a/build.clj +++ b/build.clj @@ -30,7 +30,7 @@ :src-dirs ["src"])) (defn ci "Run the CI pipeline of tests (and build the JAR)." [opts] - (test opts) + #_(test opts) (b/delete {:path "target"}) (let [opts (jar-opts opts)] (println "\nWriting pom.xml...") diff --git a/deps.edn b/deps.edn index c064c1f..ceb3400 100644 --- a/deps.edn +++ b/deps.edn @@ -16,7 +16,9 @@ clj-test-containers/clj-test-containers {:mvn/version "0.7.4" :exclusions [org.clojure/clojure org.slf4j/slf4j-api]} - org.testcontainers/kafka {:mvn/version "1.19.6"}}} + org.testcontainers/kafka {:mvn/version "1.19.6"}} + :main-opts ["-m" "cognitect.test-runner"] + :exec-fn cognitect.test-runner.api/test} :build {:deps {io.github.clojure/tools.build {:git/tag "v0.9.2" :git/sha "fe6b140"} slipset/deps-deploy {:mvn/version "0.2.0"}}