Browse Source

TT#111150 Add new unit tests GitHub workflow

This runs the test suite with sanitizers enabled.

Change-Id: Ie3a80c094725d2604946f9557b3db8498f549f42
pull/1219/head
Guillem Jover 5 years ago
parent
commit
f791bf03f9
1 changed files with 27 additions and 0 deletions
  1. +27
    -0
      .github/workflows/unit-tests.yml

+ 27
- 0
.github/workflows/unit-tests.yml View File

@ -0,0 +1,27 @@
name: Unit Tests
on:
push:
pull_request:
schedule:
- cron: '0 8 * * *'
jobs:
test:
runs-on: ubuntu-latest
name: Run unit tests
env:
FLAGS: "-fsanitize=address -fsanitize=leak -fsanitize=undefined"
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Get build dependencies
run: |
sudo apt-get build-dep -qq -y .
- name: Run unit tests with sanitizers enabled
run: |
make CFLAGS="$FLAGS" LDFLAGS="$FLAGS" check

Loading…
Cancel
Save