[nop] Update project template

This commit is contained in:
Peter Taoussanis 2024-03-18 19:07:47 +01:00
parent 02c5bba1b8
commit e513fa6f76
2 changed files with 7 additions and 1 deletions

View file

@ -83,5 +83,5 @@
"deploy-lib" ["do" ["build-once"] ["deploy" "clojars"] ["install"]]
"test-clj" ["with-profile" "+c1.12:+c1.11:+c1.10:+c1.9" "test"]
"test-cljs" ["with-profile" "+test" "cljsbuild" "test"]
"test-cljs" ["with-profile" "+c1.12" "cljsbuild" "test"]
"test-all" ["do" ["clean"] ["test-clj"] ["test-cljs"]]})

View file

@ -540,4 +540,10 @@
;;;;
#?(:cljs
(defmethod test/report [:cljs.test/default :end-run-tests] [m]
(when-not (test/successful? m)
;; Trigger non-zero `lein test-cljs` exit code for CI
(throw (ex-info "ClojureScript tests failed" {})))))
#?(:cljs (test/run-tests))