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 c8c5af8aaf
commit f791bf03f9

@ -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