Skip to content

Commit

Permalink
ci: add ci to prevent future pr's breaking sim
Browse files Browse the repository at this point in the history
  • Loading branch information
KolbyML committed Jan 9, 2024
1 parent 86cb3fa commit 7b57861
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test-sim-docker-compose-doesnt-crash-on-run

on:
pull_request:
push:
branches:
- 'master'

jobs:
commitlint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run sim
run: SCENARIO="droplist --delay=15ms --bandwidth=10Mbps --queue=25" docker compose up sim -d --build
- name: Wait for container to start
run: sleep 5
- name: Check if container is still running
run: exit $(($(docker ps -q | wc -l) ^ 1 ))
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ version: "3.5"
services:
sim:
image: martenseemann/quic-network-simulator
build:
context: sim
dockerfile: Dockerfile
container_name: sim
hostname: sim
stdin_open: true
Expand Down

0 comments on commit 7b57861

Please sign in to comment.