Skip to content

Commit 0e66aaa

Browse files
authored
Run unit tests with ASAN in CI (#1700)
Running the unit tests is quick and this catch some memory leaks in the unit tests before they get merged. Signed-off-by: Viktor Söderqvist <[email protected]>
1 parent 8988a61 commit 0e66aaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,15 @@ jobs:
7070
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7171
- name: make
7272
# build with TLS module just for compilation coverage
73-
run: make -j4 SANITIZER=address SERVER_CFLAGS='-Werror' BUILD_TLS=module
73+
run: make -j4 all-with-unit-tests SANITIZER=address SERVER_CFLAGS='-Werror' BUILD_TLS=module
7474
- name: testprep
7575
run: sudo apt-get install tcl8.6 tclx -y
7676
- name: test
7777
run: ./runtest --verbose --tags -slow --dump-logs
7878
- name: module api test
7979
run: CFLAGS='-Werror' ./runtest-moduleapi --verbose --dump-logs
80+
- name: unit tests
81+
run: ./src/valkey-unit-tests
8082

8183
test-rdma:
8284
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)