Skip to content

Commit bd43af7

Browse files
committed
Add GitHub workflow 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). And add its badge to README.
1 parent c436d96 commit bd43af7

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build and Test](https://github.com/sonertari/SSLproxy/actions/workflows/ci.yml/badge.svg)](https://github.com/sonertari/SSLproxy/actions/workflows/ci.yml)
2+
13
# SSLproxy - transparent SSL/TLS proxy for decrypting and diverting network traffic to other programs for deep SSL inspection
24

35
Copyright (C) 2017-2025, [Soner Tari](mailto:sonertari@gmail.com).

0 commit comments

Comments
 (0)