From 97e2f144fbd8fdfaa85846e6d0874024ecb11da9 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Thu, 4 Jul 2024 12:53:26 +0200 Subject: [PATCH] Add build and test workflow --- .forgejo/workflows/run-tests.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .forgejo/workflows/run-tests.yaml diff --git a/.forgejo/workflows/run-tests.yaml b/.forgejo/workflows/run-tests.yaml new file mode 100644 index 000000000..71b870150 --- /dev/null +++ b/.forgejo/workflows/run-tests.yaml @@ -0,0 +1,29 @@ +on: + push: + branches: + - main +jobs: + test: + runs-on: podman + container: + image: alpine:3.20 + steps: + - name: Install build dependencies + run: apk add --no-cache git linux-headers openssl-dev tcl procps tar make gcc musl-dev + - name: Checkout + run: git clone ${{github.server_url}}/${{ github.repository }} + - name: Build + run: make BUILD_TLS=yes + working-directory: redict + - name: Test redict + run: ./runtest + working-directory: redict + - name: Test redict-cluster + run: ./runtest-cluster + working-directory: redict + - name: Test redict-moduleapi + run: ./runtest-moduleapi + working-directory: redict + - name: Test redict-sentinel + run: ./runtest-sentinel + working-directory: redict