mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Re-fix daily CI (#9141)
The freebsd and macos jobs were still broken. also add a few more skip jobs options.
This commit is contained in:
parent
5ffdbae1f6
commit
a5bc54f01e
27
.github/workflows/daily.yml
vendored
27
.github/workflows/daily.yml
vendored
@ -10,10 +10,10 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
skipjobs:
|
skipjobs:
|
||||||
description: 'jobs to skip'
|
description: 'jobs to skip (delete the ones you wanna keep)'
|
||||||
default: 'valgrind,tls,freebsd,iothreads'
|
default: 'valgrind,tls,freebsd,macos,alpine,32bit'
|
||||||
skiptests:
|
skiptests:
|
||||||
description: 'tests to skip'
|
description: 'tests to skip (delete the ones you wanna keep)'
|
||||||
default: 'redis,modules,sentinel,cluster'
|
default: 'redis,modules,sentinel,cluster'
|
||||||
test_args:
|
test_args:
|
||||||
description: 'extra test arguments'
|
description: 'extra test arguments'
|
||||||
@ -41,6 +41,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "GITHUB_REPOSITORY=${{github.event.inputs.use_repo}}" >> $GITHUB_ENV
|
echo "GITHUB_REPOSITORY=${{github.event.inputs.use_repo}}" >> $GITHUB_ENV
|
||||||
echo "GITHUB_HEAD_REF=${{github.event.inputs.use_git_ref}}" >> $GITHUB_ENV
|
echo "GITHUB_HEAD_REF=${{github.event.inputs.use_git_ref}}" >> $GITHUB_ENV
|
||||||
|
echo "skipping: ${{github.event.inputs.skipjobs}} and ${{github.event.inputs.skiptests}}"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: ${{ env.GITHUB_REPOSITORY }}
|
repository: ${{ env.GITHUB_REPOSITORY }}
|
||||||
@ -128,7 +129,7 @@ jobs:
|
|||||||
|
|
||||||
test-ubuntu-32bit:
|
test-ubuntu-32bit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'redis/redis'
|
if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, '32bit')
|
||||||
timeout-minutes: 14400
|
timeout-minutes: 14400
|
||||||
steps:
|
steps:
|
||||||
- name: prep
|
- name: prep
|
||||||
@ -284,7 +285,7 @@ jobs:
|
|||||||
sudo apt-get install tcl8.6 tclx valgrind -y
|
sudo apt-get install tcl8.6 tclx valgrind -y
|
||||||
- name: test
|
- name: test
|
||||||
if: true && !contains(github.event.inputs.skiptests, 'redis')
|
if: true && !contains(github.event.inputs.skiptests, 'redis')
|
||||||
run: /runtest --valgrind --verbose --clients 1 --dump-logs ${{github.event.inputs.test_args}}
|
run: ./runtest --valgrind --verbose --clients 1 --dump-logs ${{github.event.inputs.test_args}}
|
||||||
- name: module api test
|
- name: module api test
|
||||||
if: true && !contains(github.event.inputs.skiptests, 'modules')
|
if: true && !contains(github.event.inputs.skiptests, 'modules')
|
||||||
run: ./runtest-moduleapi --valgrind --no-latency --verbose --clients 1 ${{github.event.inputs.test_args}}
|
run: ./runtest-moduleapi --valgrind --no-latency --verbose --clients 1 ${{github.event.inputs.test_args}}
|
||||||
@ -370,7 +371,7 @@ jobs:
|
|||||||
|
|
||||||
test-macos-latest:
|
test-macos-latest:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
if: github.repository == 'redis/redis'
|
if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'macos')
|
||||||
timeout-minutes: 14400
|
timeout-minutes: 14400
|
||||||
steps:
|
steps:
|
||||||
- name: prep
|
- name: prep
|
||||||
@ -417,15 +418,15 @@ jobs:
|
|||||||
sync: rsync
|
sync: rsync
|
||||||
prepare: pkg install -y bash gmake lang/tcl86 lang/tclx
|
prepare: pkg install -y bash gmake lang/tcl86 lang/tclx
|
||||||
run: >
|
run: >
|
||||||
gmake &&
|
gmake || exit 1 ;
|
||||||
if [[ "${{github.event.inputs.skiptests}}" == *'redis'* ]] ; then ./runtest --accurate --verbose --no-latency --dump-logs ${{github.event.inputs.test_args}} ; fi &&
|
if echo "${{github.event.inputs.skiptests}}" | grep -vq redis ; then ./runtest --accurate --verbose --no-latency --dump-logs ${{github.event.inputs.test_args}} || exit 1 ; fi ;
|
||||||
if [[ "${{github.event.inputs.skiptests}}" == *'mnodules'* ]] ; then MAKE=gmake ./runtest-moduleapi --verbose ${{github.event.inputs.test_args}} ; fi &&
|
if echo "${{github.event.inputs.skiptests}}" | grep -vq modules ; then MAKE=gmake ./runtest-moduleapi --verbose ${{github.event.inputs.test_args}} || exit 1 ; fi ;
|
||||||
if [[ "${{github.event.inputs.skiptests}}" == *'sentinel'* ]] ; then ./runtest-sentinel ${{github.event.inputs.cluster_test_args}} ; fi &&
|
if echo "${{github.event.inputs.skiptests}}" | grep -vq sentinel ; then ./runtest-sentinel ${{github.event.inputs.cluster_test_args}} || exit 1 ; fi ;
|
||||||
if [[ "${{github.event.inputs.skiptests}}" == *'cluster'* ]] ; then ./runtest-cluster ${{github.event.inputs.cluster_test_args}} ; fi
|
if echo "${{github.event.inputs.skiptests}}" | grep -vq cluster ; then ./runtest-cluster ${{github.event.inputs.cluster_test_args}} || exit 1 ; fi ;
|
||||||
|
|
||||||
test-alpine-jemalloc:
|
test-alpine-jemalloc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'redis/redis'
|
if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'alpine')
|
||||||
container: alpine:latest
|
container: alpine:latest
|
||||||
steps:
|
steps:
|
||||||
- name: prep
|
- name: prep
|
||||||
@ -457,7 +458,7 @@ jobs:
|
|||||||
|
|
||||||
test-alpine-libc-malloc:
|
test-alpine-libc-malloc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'redis/redis'
|
if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'alpine')
|
||||||
container: alpine:latest
|
container: alpine:latest
|
||||||
steps:
|
steps:
|
||||||
- name: prep
|
- name: prep
|
||||||
|
Loading…
Reference in New Issue
Block a user