-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (33 loc) · 1.06 KB
/
unit_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Unit Tests
on:
pull_request:
branches: [ master ]
jobs:
nodeps_unit_tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get update -y && sudo apt-get install -y autoconf automake gcc
- name: Run autotools / configure
run: ./autogen.sh --enable-debug --with-pcre2=no --with-openssl=no --with-libyaml=no
- name: Compile and link (make)
run: make CFLAGS="-Werror -Wall"
- name: Run unit tests
run: make check
unit_tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get update -y && sudo apt-get install -y autoconf automake gcc libssl-dev libpcre2-dev libyaml-dev
- name: Run autotools / configure
run: ./autogen.sh --enable-debug
- name: Compile and link (make)
run: make CFLAGS="-Wall -Wextra -Werror -Wno-sign-compare"
- name: Run unit tests
run: make -C tests/unit check