summaryrefslogtreecommitdiff
path: root/.forgejo
diff options
context:
space:
mode:
Diffstat (limited to '.forgejo')
-rw-r--r--.forgejo/workflows/tests.yml45
1 files changed, 31 insertions, 14 deletions
diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml
index 438691a..62a5369 100644
--- a/.forgejo/workflows/tests.yml
+++ b/.forgejo/workflows/tests.yml
@@ -8,22 +8,39 @@ on:
jobs:
test-runtimes:
runs-on: docker
+ container:
+ image: ubuntu:latest
steps:
+ - name: Install dependencies
+ run: |
+ apt-get update
+ apt-get install -y curl wget bash rlwrap unzip git
+
- 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'
+ run: |
+ git clone --depth 1 "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" .
+ git fetch origin "$GITHUB_SHA"
+ git checkout "$GITHUB_SHA"
+
+ - name: Install Java (Zulu 24)
+ run: |
+ curl -sL https://cdn.azul.com/zulu/bin/zulu24.0.0-ca-jdk24.0.0-linux_x64.tar.gz | tar xz -C /opt
+ echo "/opt/zulu24.0.0-ca-jdk24.0.0-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: Test Babashka
run: |