From 765a87100ea18033998a0f41d95aa8ec38512ab3 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Thu, 18 Apr 2024 12:01:51 +0900 Subject: [PATCH] Add netnsplan test to CI workflow and config file --- .github/testdata/test-config.yaml | 5 +++++ .github/workflows/ci.yml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .github/testdata/test-config.yaml 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