Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub Actions to verify solution #96

Open
wants to merge 3 commits into
base: advanced
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI

on:
push:
branches: [ advanced ]
pull_request:
branches: [ advanced ]
workflow_dispatch:

jobs:
verify_solution:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download deps
run: make deps
- name: Check solution
run: make check check-sr check-gtp NGSDN_TUTORIAL_SUDO=sudo
5 changes: 4 additions & 1 deletion util/mn-cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ if [ -z $1 ]; then
exit 1
fi

docker exec -it mininet /mininet/host-cmd $@
# Do not attach stdin if running in an environment without (e.g., GitHub Actions)
it=$(test -t 0 && echo "-it" || echo "-t")

docker exec $it mininet /mininet/host-cmd $@