Add build and test workflow

This commit is contained in:
Micke Nordin 2024-07-04 12:53:26 +02:00
parent 52c3e46637
commit 97e2f144fb

View File

@ -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