summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2026-02-01 02:02:45 +0200
committerAsko Nõmm <asko@nmm.ee>2026-02-01 02:02:45 +0200
commit8b3e1b4b686385f794f0276bd12fa84f444da5e7 (patch)
tree669f2ffe8fe72ef777873c89e5306914d3518742
parent279e9ca616f2b835931007165eb9d8b1b209a51b (diff)
Update workflow
-rw-r--r--.forgejo/workflows/tests.yml52
-rw-r--r--.github/workflows/tests.yml31
2 files changed, 52 insertions, 31 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
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
deleted file mode 100644
index 12bb9bd..0000000
--- a/.github/workflows/tests.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: Tests
-on:
- push:
- branches:
- - master
- workflow_dispatch:
- branches:
- - master
-jobs:
- run-tests:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- fetch-depth: 0
-
- - name: Prepare java
- uses: actions/setup-java@v2
- with:
- distribution: 'zulu'
- java-version: '17'
-
- - name: Install clojure tools
- uses: DeLaGuardo/setup-clojure@4.0
- with:
- lein: 'latest'
- github-token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: "Run tests"
- run: lein kaocha