Skip to content

Commit b26b43e

Browse files
committed
Add GitHub action to build and unit test
using a draft suggested by Copilot (but Copilot couldn't find the correct libraries to install as dependencies, except for three of them)
1 parent c436d96 commit b26b43e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ develop, master ]
6+
pull_request:
7+
branches: [ develop, master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y build-essential libevent-dev libssl-dev libnet1-dev libpcap-dev libsqlite3-dev check
22+
23+
- name: Build
24+
run: make
25+
26+
- name: Run unit tests
27+
run: make unittest

0 commit comments

Comments
 (0)