Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/_out
bin/
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ promlinter-push:

.PHONY: monitoringlinter-unit-test
monitoringlinter-unit-test:
cd monitoringlinter && go test ./...
go test ./monitoringlinter/...

.PHONY: monitoringlinter-build
monitoringlinter-build:
cd monitoringlinter && go build ./cmd/monitoringlinter
go build -o bin/ ./monitoringlinter/cmd/monitoringlinter

.PHONY: monitoringlinter-test
monitoringlinter-test: monitoringlinter-build
cd monitoringlinter && ./tests/e2e.sh
./monitoringlinter/tests/e2e.sh

.PHONY: lint-markdown
lint-markdown:
Expand Down
2 changes: 1 addition & 1 deletion monitoringlinter/go.mod → go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kubevirt/monitoring/monitoringlinter
module github.com/kubevirt/monitoring

go 1.23.6

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions monitoringlinter/tests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

cp monitoringlinter testdata/src/a/testrepo
cd testdata/src/a/testrepo
cp ./bin/monitoringlinter monitoringlinter/testdata/src/a/testrepo
cd monitoringlinter/testdata/src/a/testrepo

[[ $(./monitoringlinter testrepo/... 2>&1 | wc -l) == 14 ]]