-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bd5a23
commit e19e7a7
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/ |