diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 7d4fbc0f4..14f058ee5 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -118,6 +118,13 @@ jobs: pkg-config --define-prefix --cflags --libs taglib # for debugging go test -shuffle=on -tags netgo -race ./... -v + - name: Test ndpgen + run: | + cd plugins/cmd/ndpgen + go test -shuffle=on -v + go build -o ndpgen . + ./ndpgen --help + js: name: Test JS code runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 78a7c33bb..4073bdfb7 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,11 @@ test: ##@Development Run Go tests. Use PKG variable to specify packages to test, go test -tags netgo $(PKG) .PHONY: test -testall: test test-i18n test-js ##@Development Run Go and JS tests +test-ndpgen: ##@Development Run tests for ndpgen plugin + cd plugins/cmd/ndpgen && go test ./...... +.PHONY: test-ndpgen + +testall: test test-ndpgen test-i18n test-js ##@Development Run Go and JS tests .PHONY: testall test-race: ##@Development Run Go tests with race detector