Skip to content

Commit 0c557cf

Browse files
committedMar 15, 2024
github: Add basic test job
1 parent fcc79a2 commit 0c557cf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
 

‎.github/workflows/tests.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test:
9+
name: Unit and integration tests
10+
runs-on: ubuntu-22.04
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup dependencies
15+
run: |
16+
sudo apt-get update -qq
17+
sudo apt-get install -qq lcov
18+
19+
- name: Configure
20+
run: |
21+
autoreconf -i
22+
./configure --enable-debug \
23+
--enable-backtrace \
24+
--enable-sanitize
25+
26+
- name: Build
27+
run: |
28+
make -j$(nproc --all)
29+
30+
- name: Test
31+
run: |
32+
make check CFLAGS=-O0 || (cat ./test-suite.log && false)

0 commit comments

Comments
 (0)