diff --git a/.github/workflows/runonce.yml b/.github/workflows/runonce.yml index 8b6c8ea..0ca96c1 100644 --- a/.github/workflows/runonce.yml +++ b/.github/workflows/runonce.yml @@ -14,4 +14,4 @@ jobs: run: make - name: Run MetricCollector - run: ./metric-collector --once + run: make runonce diff --git a/Makefile b/Makefile index 120256d..d3b368b 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ $(APP): metric-collector.go make -C collectors go build -o $(APP) metric-collector.go +runonce: $(APP) + ./$(APP) --once + fmt: go fmt collectors/*.go go fmt sinks/*.go