summaryrefslogtreecommitdiff
path: root/.forgejo
diff options
context:
space:
mode:
Diffstat (limited to '.forgejo')
-rw-r--r--.forgejo/workflows/tests.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml
new file mode 100644
index 0000000..aa7db0a
--- /dev/null
+++ b/.forgejo/workflows/tests.yml
@@ -0,0 +1,52 @@
+name: Tests
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+ branches:
+ - master
+jobs:
+ run-tests:
+ runs-on: docker
+ container:
+ image: node:20
+ steps:
+ - name: Install dependencies
+ run: |
+ apt-get update
+ apt-get install -y curl wget bash rlwrap unzip git
+
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Install Java (Zulu 24)
+ run: |
+ curl -sL https://cdn.azul.com/zulu/bin/zulu24.32.13-ca-jdk24.0.2-linux_x64.tar.gz | tar xz -C /opt
+ echo "/opt/zulu24.32.13-ca-jdk24.0.2-linux_x64/bin" >> "$GITHUB_PATH"
+
+ - name: Install Clojure CLI
+ run: |
+ curl -sL https://download.clojure.org/install/linux-install.sh | bash
+
+ - name: Install Babashka
+ run: |
+ BB_VERSION="1.12.214"
+ curl -sL "https://github.com/babashka/babashka/releases/download/v${BB_VERSION}/babashka-${BB_VERSION}-linux-amd64-static.tar.gz" | tar xz -C /usr/local/bin
+
+ - name: Install clj-kondo
+ run: |
+ CLJ_KONDO_VERSION="2026.01.19"
+ curl -sL "https://github.com/clj-kondo/clj-kondo/releases/download/v${CLJ_KONDO_VERSION}/clj-kondo-${CLJ_KONDO_VERSION}-linux-amd64.zip" -o /tmp/clj-kondo.zip
+ unzip -o /tmp/clj-kondo.zip -d /usr/local/bin
+
+ - name: Install Leiningen
+ run: |
+ curl -sL https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o /usr/local/bin/lein
+ chmod +x /usr/local/bin/lein
+ lein
+
+ - name: "Run tests"
+ run: lein kaocha