Skip to content

Commit b975b05

Browse files
authored
Merge pull request #2820 from ksss/address-sanitizer
Setup test with ASAN
2 parents 52e1c6e + 5fe342c commit b975b05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
job: rubocop validate test_doc build test_generate_stdlib raap
3333
- ruby: "4.0"
3434
job: typecheck_test
35+
- ruby: asan-release
36+
job: test
3537
env:
3638
RANDOMIZE_STDLIB_TEST_ORDER: "true"
3739
steps:
@@ -66,6 +68,10 @@ jobs:
6668
- name: bin/setup
6769
run: |
6870
bin/setup
71+
- name: Configure ASAN options
72+
if: ${{ contains(matrix.ruby, 'asan') }}
73+
run: |
74+
echo "ASAN_OPTIONS=abort_on_error=1" >> $GITHUB_ENV
6975
- name: Run test
7076
run: |
7177
bundle exec rake ${{ matrix.job }}

0 commit comments

Comments
 (0)