-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (40 loc) · 1.24 KB
/
e2e.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: E2E Tests
on:
push:
branches:
- master
jobs:
e2e:
strategy:
matrix:
os:
- ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t tls-traffic-analyzer:latest --no-cache --build-arg BASE_IMAGE=$(echo ${{ matrix.os }} | sed s/-/:/) -f docker/Dockerfile .
- name: Get netwok interface
run: |
ip -4 route | awk '/default/{print $5}' >> $GITHUB_ENV
- name: Start container
run: |
docker run \
--privileged \
-it --rm -d \
-v $(pwd)/dumps:/dumps \
--network host \
--pid host \
tls-traffic-analyzer:latest \
-i $INTERFACE -o /dumps --chown-traffic-dumps $UID --commands curl
- name: Sleep and show logs
run: sleep 5 && docker logs $(docker ps -q)
- name: Run curl
run: curl -v https://www.google.com
- name: Sleep and show logs
run: sleep 5 && docker logs $(docker ps -q)
- name: Stop container
run: docker stop $(docker ps -q)
- name: Check for network dumps
run: ls -l dumps/