summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-02-23 12:57:45 +0200
committerGitHub <noreply@github.com>2021-02-23 12:57:45 +0200
commit95ea74549cc454d6d6a7462b366462589cd96712 (patch)
treed80d70cdfc83604090b38025c7f7b075af205249 /.github
parent8e83bcd2acb18370e2d6cea3718339792322e80f (diff)
downloadredis-95ea74549cc454d6d6a7462b366462589cd96712.tar.gz
Fix failed tests on Linux Alpine and add a CI job. (#8532)
* Remove linux/version.h dependency. This introduces unnecessary dependencies, and generally not a good idea as the platform we build on may be different than the platform we run on. To determine if sync_file_range exists we can simply rely on header file hints. * Fix setproctitle() on libmusl. The previous ifdef checks were a bit too strict for no apparent reason. * Fix tests failure on Linux with no backtrace. * Add alpine daily CI job.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/daily.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml
index 9d7eb65c9..6aa535c5e 100644
--- a/.github/workflows/daily.yml
+++ b/.github/workflows/daily.yml
@@ -221,3 +221,23 @@ jobs:
MAKE=gmake ./runtest-moduleapi --verbose &&
./runtest-sentinel &&
./runtest-cluster
+
+ test-alpine:
+ runs-on: ubuntu-latest
+ container: alpine:latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: make
+ run: |
+ apk add build-base
+ make REDIS_CFLAGS='-Werror'
+ - name: test
+ run: |
+ apk add tcl procps
+ ./runtest --accurate --verbose --dump-logs
+ - name: module api test
+ run: ./runtest-moduleapi --verbose
+ - name: sentinel tests
+ run: ./runtest-sentinel
+ - name: cluster tests
+ run: ./runtest-cluster