File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ jobs:
277277 output_dir : .github/outputs
278278
279279 - name : Generate Coverage Report with Fixed PR Number
280+ if : steps.changed-files.outputs.any_changed == 'true'
280281 run : |
281282 set -e # Exit on error
282283
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ lint-test: ## Lint and test Go module (vet + golangci-lint + gotestsum)
1717 $(TEST_SETUP_COMMANDS ) \
1818 $(GO ) vet ./... && \
1919 $(GOLANGCI_LINT ) run --config $(GOLANGCI_CONFIG_PATH ) $(LINT_EXTRA_FLAGS ) && \
20- $(GOTESTSUM ) --junitfile report.xml -- -race $(TEST_EXTRA_FLAGS ) ./... -coverprofile=coverage.txt -covermode atomic -coverpkg=. /... && \
20+ $(GOTESTSUM ) --junitfile report.xml -- -race $(TEST_EXTRA_FLAGS ) ./... -coverprofile=coverage.txt -covermode atomic -coverpkg=github.com/nvidia/nvsentinel/ $( MODULE_NAME ) /... && \
2121 $(GO ) tool cover -func coverage.txt && \
2222 $(GOCOVER_COBERTURA ) < coverage.txt > coverage.xml
2323
@@ -40,7 +40,7 @@ lint: ## Run golangci-lint
4040test : # # Run tests with coverage
4141 @echo " Running tests on $( MODULE_NAME) ..."
4242 $(TEST_SETUP_COMMANDS ) \
43- $(GOTESTSUM ) --junitfile report.xml -- -race $(TEST_EXTRA_FLAGS ) ./... -coverprofile=coverage.txt -covermode atomic -coverpkg=. /...
43+ $(GOTESTSUM ) --junitfile report.xml -- -race $(TEST_EXTRA_FLAGS ) ./... -coverprofile=coverage.txt -covermode atomic -coverpkg=github.com/nvidia/nvsentinel/ $( MODULE_NAME ) /...
4444
4545.PHONY : coverage
4646coverage : test # # Generate coverage reports
You can’t perform that action at this time.
0 commit comments