diff --git a/.github/testdata/test-config.yaml b/.github/testdata/test-config.yaml new file mode 100644 index 0000000..4eec43b --- /dev/null +++ b/.github/testdata/test-config.yaml @@ -0,0 +1,5 @@ +netns: + dummy: + test0: + addresses: + - 192.168.0.1/24 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08e84c8..4fb2268 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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