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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
run: go vet ./...

- name: Run tests
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
run: go test -race -count=1 -shuffle=on -timeout=10m -coverprofile=coverage.out -covermode=atomic ./...
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile for workflow project

.PHONY: test lint build examples clean help docs
.PHONY: test lint vuln build examples clean help docs

# Default target
help: ## Show this help message
Expand All @@ -10,12 +10,15 @@ help: ## Show this help message
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)

test: ## Run tests with coverage
go test -race -coverprofile=coverage.out -covermode=atomic ./...
go test -race -count=1 -shuffle=on -timeout=10m -coverprofile=coverage.out -covermode=atomic ./...
go tool cover -html=coverage.out -o coverage.html

lint: ## Run golangci-lint
golangci-lint run ./...

vuln: ## Run govulncheck
go run golang.org/x/vuln/cmd/govulncheck@latest ./...

build: ## Build the project
go build ./...

Expand Down Expand Up @@ -46,7 +49,7 @@ fmt: ## Format code
goimports -w .
gofmt -s -w .

check: lint test ## Run all checks (lint + test)
check: lint vuln test ## Run all checks (lint + vuln + test)

docs: ## Generate documentation
gomarkdoc --output docs/llms.md .
Expand All @@ -65,6 +68,6 @@ install-tools: ## Install development tools
pin-actions: ## pin github actions
go tool github.com/stacklok/frizbee actions .github/workflows

ci: tidy fmt lint test ## Run CI pipeline locally
ci: tidy fmt lint vuln test ## Run CI pipeline locally

.DEFAULT_GOAL := help
Loading