Skip to content

Commit

Permalink
Add clj tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johantonelli committed Dec 10, 2024
1 parent bf96065 commit ab95573
Show file tree
Hide file tree
Showing 7 changed files with 441 additions and 171 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Unit tests

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:

clojure:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare java
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '21'

- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.3.1463

- name: Test Clojure
run: clojure -M:test
2 changes: 2 additions & 0 deletions bin/kaocha
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
clojure -M:test "$@"
5 changes: 3 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
"-Dio.netty.tryReflectionSetAccessible=true"]}

:test
{:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.0.632"}}}
{:extra-paths ["test/clj"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.91.1392"}}
:main-opts ["-m" "kaocha.runner"]}

:build {:extra-deps {io.github.clojure/tools.build {:git/tag "v0.8.4" :git/sha "8c3cd69"}}
:ns-default build}}
Expand Down
Loading

0 comments on commit ab95573

Please sign in to comment.