Skip to content

Commit 93b8201

Browse files
committed
Add integration tests for Godot with address sanitizers
Currently allowed to fail, until memory errors are fixed.
1 parent 5ea5447 commit 93b8201

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/full-ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
cargo clippy --all-targets $GDEXT_FEATURES -- -D clippy::suspicious -D clippy::style -D clippy::complexity -D clippy::perf \
6464
-D clippy::dbg_macro -D clippy::todo -D clippy::unimplemented -D warnings
6565
66+
6667
unit-test:
6768
name: unit-test (${{ matrix.name }}${{ matrix.rust-special }})
6869
runs-on: ${{ matrix.os }}
@@ -127,7 +128,7 @@ jobs:
127128
binary-filename: ${{ matrix.godot-binary }}
128129

129130
- name: "Compile tests"
130-
run: cargo test --no-run
131+
run: cargo test $GDEXT_FEATURES --no-run
131132

132133
- name: "Test"
133134
run: cargo test $GDEXT_FEATURES
@@ -136,7 +137,8 @@ jobs:
136137
godot-itest:
137138
name: godot-itest (${{ matrix.name }})
138139
runs-on: ${{ matrix.os }}
139-
continue-on-error: false
140+
# TODO: continue-on-error: false, as soon as memory errors are fixed
141+
continue-on-error: ${{ contains(matrix.name, 'memcheck') }}
140142
timeout-minutes: 24
141143
strategy:
142144
fail-fast: false # cancel all jobs as soon as one fails?
@@ -162,6 +164,16 @@ jobs:
162164
rust-toolchain: stable
163165
godot-binary: godot.linuxbsd.editor.dev.x86_64
164166

167+
- name: linux-memcheck-gcc
168+
os: ubuntu-20.04
169+
rust-toolchain: stable
170+
godot-binary: godot.linuxbsd.editor.dev.x86_64.san
171+
172+
- name: linux-memcheck-clang
173+
os: ubuntu-20.04
174+
rust-toolchain: stable
175+
godot-binary: godot.linuxbsd.editor.dev.x86_64.llvm.san
176+
165177
steps:
166178
- uses: actions/checkout@v3
167179

0 commit comments

Comments
 (0)