Skip to content

Commit be3b2f9

Browse files
committed
ci: add github actions to run test suite
1 parent 8cc87e2 commit be3b2f9

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install dependencies
16+
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
17+
18+
- name: Configure
19+
run: cmake -DTEST_ENABLE=on -B build
20+
21+
- name: Build
22+
run: cmake --build build
23+
24+
- name: Test
25+
run: ctest --test-dir build --output-on-failure

0 commit comments

Comments
 (0)