Skip to content

Commit

Permalink
Add netnsplan test to CI workflow and config file
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Apr 18, 2024
1 parent 488185d commit 765a871
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/testdata/test-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
netns:
dummy:
test0:
addresses:
- 192.168.0.1/24
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ jobs:
go-version-file: ./go.mod
- run: go fmt ./...
- run: go test -v ./...
- name: Test Run netnsplan
run: |
go build -o netnsplan
./netnsplan -h
./netnsplan apply -c .github/testdata

0 comments on commit 765a871

Please sign in to comment.