From f08e5f02f13ce7629babd1cc1ed0901ea267ec8c Mon Sep 17 00:00:00 2001 From: Per Magnus Petersen Date: Fri, 18 Sep 2026 15:53:08 +0200 Subject: [PATCH] Run Clojure tests in the Actions runner container --- .gitea/workflows/build.yml | 8 +++++++- .gitea/workflows/pr.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 21bcc5b..51a8a9a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -36,7 +36,13 @@ jobs: - uses: actions/checkout@v4 - name: Test - run: clojure -M:test + run: | + docker run --rm --network host \ + -e TARGET_HOST -e TARGET_PORT -e TARGET_DB \ + -e TARGET_USER -e TARGET_PASSWORD \ + -v "$PWD:/app" -w /app \ + clojure:temurin-21-tools-deps-alpine \ + clojure -M:test - name: Generate immutable tags id: tags diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 8e5df9b..e1c176e 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -31,7 +31,13 @@ jobs: - uses: actions/checkout@v4 - name: Test - run: clojure -M:test + run: | + docker run --rm --network host \ + -e TARGET_HOST -e TARGET_PORT -e TARGET_DB \ + -e TARGET_USER -e TARGET_PASSWORD \ + -v "$PWD:/app" -w /app \ + clojure:temurin-21-tools-deps-alpine \ + clojure -M:test - name: Build production image run: docker build --platform linux/amd64 -t elprice:pr-check .