summaryrefslogtreecommitdiffstats
path: root/.github/workflows/external.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
commit317c0644ccf108aa23ef3fd8358bd66c2840bfc0 (patch)
treec417b3d25c86b775989cb5ac042f37611b626c8a /.github/workflows/external.yml
parentInitial commit. (diff)
downloadredis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.tar.xz
redis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.zip
Adding upstream version 5:7.2.4.upstream/5%7.2.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/external.yml')
-rw-r--r--.github/workflows/external.yml82
1 files changed, 82 insertions, 0 deletions
diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml
new file mode 100644
index 0000000..15a9afb
--- /dev/null
+++ b/.github/workflows/external.yml
@@ -0,0 +1,82 @@
+name: External Server Tests
+
+on:
+ pull_request:
+ push:
+ schedule:
+ - cron: '0 0 * * *'
+
+jobs:
+ test-external-standalone:
+ runs-on: ubuntu-latest
+ if: github.event_name != 'schedule' || github.repository == 'redis/redis'
+ timeout-minutes: 14400
+ steps:
+ - uses: actions/checkout@v3
+ - name: Build
+ run: make REDIS_CFLAGS=-Werror
+ - name: Start redis-server
+ run: |
+ ./src/redis-server --daemonize yes --save "" --logfile external-redis.log \
+ --enable-protected-configs yes --enable-debug-command yes --enable-module-command yes
+ - name: Run external test
+ run: |
+ ./runtest \
+ --host 127.0.0.1 --port 6379 \
+ --tags -slow
+ - name: Archive redis log
+ if: ${{ failure() }}
+ uses: actions/upload-artifact@v3
+ with:
+ name: test-external-redis-log
+ path: external-redis.log
+
+ test-external-cluster:
+ runs-on: ubuntu-latest
+ if: github.event_name != 'schedule' || github.repository == 'redis/redis'
+ timeout-minutes: 14400
+ steps:
+ - uses: actions/checkout@v3
+ - name: Build
+ run: make REDIS_CFLAGS=-Werror
+ - name: Start redis-server
+ run: |
+ ./src/redis-server --cluster-enabled yes --daemonize yes --save "" --logfile external-redis.log \
+ --enable-protected-configs yes --enable-debug-command yes --enable-module-command yes
+ - name: Create a single node cluster
+ run: ./src/redis-cli cluster addslots $(for slot in {0..16383}; do echo $slot; done); sleep 5
+ - name: Run external test
+ run: |
+ ./runtest \
+ --host 127.0.0.1 --port 6379 \
+ --cluster-mode \
+ --tags -slow
+ - name: Archive redis log
+ if: ${{ failure() }}
+ uses: actions/upload-artifact@v3
+ with:
+ name: test-external-cluster-log
+ path: external-redis.log
+
+ test-external-nodebug:
+ runs-on: ubuntu-latest
+ if: github.event_name != 'schedule' || github.repository == 'redis/redis'
+ timeout-minutes: 14400
+ steps:
+ - uses: actions/checkout@v3
+ - name: Build
+ run: make REDIS_CFLAGS=-Werror
+ - name: Start redis-server
+ run: |
+ ./src/redis-server --daemonize yes --save "" --logfile external-redis.log
+ - name: Run external test
+ run: |
+ ./runtest \
+ --host 127.0.0.1 --port 6379 \
+ --tags "-slow -needs:debug"
+ - name: Archive redis log
+ if: ${{ failure() }}
+ uses: actions/upload-artifact@v3
+ with:
+ name: test-external-redis-log
+ path: external-redis.log