From a0b90d3a8be0544dd7cbba92c53765288676cdaa Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 17 Aug 2023 18:13:46 +0200 Subject: [PATCH] Add Babashka test runner (fixes #86) --- .github/workflows/test.yml | 4 ++++ CHANGELOG.md | 1 + bb.edn | 5 +++++ 3 files changed, 10 insertions(+) create mode 100644 bb.edn diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20a631c..79e72d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,7 @@ jobs: lein: 2.9.10 clj-kondo: 2023.05.18 cljfmt: 0.10.2 + bb: latest - name: Cache clojure dependencies uses: actions/cache@v3 @@ -30,6 +31,9 @@ jobs: - name: Run tests run: lein test-all + - name: Run bb tests + run: bb test:bb + - name: Lint code run: clj-kondo --lint src test diff --git a/CHANGELOG.md b/CHANGELOG.md index 862cf9d..136aa6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * **BREAKING CHANGE:** removed old `expand` function * Added `assert-key` to replace `pre-init-spec` * Added `expand-key` and new `expand` function (#102) +* Added babashka test runner (#86) ## 0.8.1 (2023-05-26) diff --git a/bb.edn b/bb.edn new file mode 100644 index 0000000..87a55ed --- /dev/null +++ b/bb.edn @@ -0,0 +1,5 @@ +{:deps {integrant/integrant {:local/root "."}} + :tasks {test:bb {:extra-paths ["test"] + :extra-deps {io.github.cognitect-labs/test-runner + {:git/tag "v0.5.1" :git/sha "dfb30dd"}} + :task cognitect.test-runner/-main}}}