Skip to content

Commit

Permalink
Run CI tests with ASan
Browse files Browse the repository at this point in the history
  • Loading branch information
JayKickliter committed Jun 8, 2020
1 parent bfee0de commit 4ac7010
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,23 @@ jobs:

ci:
runs-on: ubuntu-latest
container: madninja/builder-erlang:2
container: heliumsystems/builder-erlang:1

steps:
- uses: actions/checkout@v2

- name: Build
env:
SANITIZE_ERLANG_NIFS: 1
run: rebar3 compile

- name: Dialyzer
run: rebar3 dialyzer

- name: Run tests
run: rebar3 do eunit, ct
env:
# We turn off leak detection to reduce noise from leaking
# processes that rebar exec()s before it actually runs the
# tests.
ASAN_OPTIONS: detect_leaks=0
run: LD_PRELOAD="$(cc --print-file libasan.so)" rebar3 do eunit, ct

0 comments on commit 4ac7010

Please sign in to comment.