From 06085b955bb2959a88844dae9f77a0f35ee6a8c5 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Wed, 8 Oct 2025 21:17:33 +0300 Subject: Add test for babashka --- .github/workflows/tests.yml | 23 +++++++++++++++++++++++ bb.edn | 8 ++++++++ 2 files changed, 31 insertions(+) create mode 100644 bb.edn diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 456c321..ca340e7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -47,3 +47,26 @@ jobs: run: | clojure -M:test-cljs + test-bb: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '24' + + - name: Setup Clojure + uses: DeLaGuardo/setup-clojure@13.4 + with: + cli: 'latest' + clj-kondo: 'latest' + bb: 'latest' + + - name: Run tests + run: | + bb test + diff --git a/bb.edn b/bb.edn new file mode 100644 index 0000000..85d4e94 --- /dev/null +++ b/bb.edn @@ -0,0 +1,8 @@ +{:tasks + {test {:extra-paths ["src" "test"] + :extra-deps {io.github.cognitect-labs/test-runner + {:git/tag "v0.5.1" :git/sha "dfb30dd"}} + :task (exec 'cognitect.test-runner.api/test) + :exec-args {:dirs ["test"]} + :org.babashka/cli {:coerce {:nses [:symbol] + :vars [:symbol]}}}}} -- cgit v1.2.3