diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 8d71bd3..610ab27 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -33,6 +33,8 @@ jobs: run: docker compose up -d env: MYSQL_ROOT_PASSWORD: testing + - name: Prep libs + run: clojure -X:deps prep :aliases '[:test]' - name: Run MariaDB Tests run: clojure -M:test:runner:1.11 env: diff --git a/.github/workflows/test-and-snapshot.yml b/.github/workflows/test-and-snapshot.yml index f2ee425..bfc984c 100644 --- a/.github/workflows/test-and-snapshot.yml +++ b/.github/workflows/test-and-snapshot.yml @@ -31,6 +31,8 @@ jobs: run: docker compose up -d env: MYSQL_ROOT_PASSWORD: testing + - name: Prep libs + run: clojure -X:deps prep :aliases '[:test]' - name: Run MariaDB Tests run: clojure -M:test:runner:1.11 env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3fc6b98..1479e35 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,8 @@ jobs: run: docker compose up -d env: MYSQL_ROOT_PASSWORD: testing + - name: Prep libs + run: clojure -X:deps prep :aliases '[:test]' - name: Run MariaDB Tests run: clojure -M:test:runner:1.11 env: diff --git a/build.clj b/build.clj index b9cca79..2e4dcbe 100644 --- a/build.clj +++ b/build.clj @@ -21,7 +21,7 @@ (def class-dir "target/classes") (defn test "Run all the tests." [opts] - (doseq [alias [#_:1.10 :1.11 :1.12]] + (doseq [alias [:1.10 :1.11 :1.12]] (println "\nRunning tests for Clojure" (name alias)) (let [basis (b/create-basis {:aliases [:test alias]}) cmds (b/java-command diff --git a/deps.edn b/deps.edn index cc4b722..9a3dd12 100644 --- a/deps.edn +++ b/deps.edn @@ -18,7 +18,10 @@ ;; running tests/checks of various kinds: :test {:extra-paths ["test"] - :extra-deps {io.github.noahtheduke/lazytest {:mvn/version "1.5.0"} + :extra-deps {io.github.noahtheduke/lazytest + {:git/url "https://github.com/NoahTheDuke/lazytest/" + :git/sha "4e4a746bed3eb5642b67d63117aef60954fe424f"} + #_{:mvn/version "1.5.0"} org.clojure/test.check {:mvn/version "1.1.1"} ;; connection pooling com.zaxxer/HikariCP {:mvn/version "6.2.1"} diff --git a/run-tests.clj b/run-tests.clj index 8f8f898..595aeaa 100755 --- a/run-tests.clj +++ b/run-tests.clj @@ -23,5 +23,6 @@ (assoc "NEXT_JDBC_TEST_MARIADB" "yes") xtdb? (assoc "NEXT_JDBC_TEST_XTDB" "yes"))] - (doseq [v (if all? [#_"1.10" "1.11" "1.12"] [nil])] + (p/shell "clojure" "-X:deps" "prep" ":aliases" "[:test]") + (doseq [v (if all? ["1.10" "1.11" "1.12"] [nil])] (run-tests env v)))