-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (35 loc) · 1.41 KB
/
Makefile
File metadata and controls
41 lines (35 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# =============================================================================
# OpenCode Bar - Development Makefile
# =============================================================================
.PHONY: setup lint lint-swift lint-actions help
# Default target
help:
@echo "Available commands:"
@echo " make setup - Configure git hooks (run once after clone)"
@echo " make lint - Run all linters"
@echo " make lint-swift - Run SwiftLint only"
@echo " make lint-actions - Run action-validator only"
# =============================================================================
# Setup - Run once after cloning
# =============================================================================
setup:
@echo "Configuring git hooks..."
@git config core.hooksPath .githooks
@echo "✓ Git hooks configured"
@echo ""
@echo "Pre-commit will now run:"
@echo " - SwiftLint on .swift files"
@echo " - action-validator on .github/workflows/*.yml files"
# =============================================================================
# Linting
# =============================================================================
lint: lint-swift lint-actions
lint-swift:
@echo "Running SwiftLint..."
@swiftlint lint CopilotMonitor/CopilotMonitor
lint-actions:
@echo "Running action-validator..."
@for f in .github/workflows/*.yml; do \
echo "Validating $$f..."; \
npx --yes @action-validator/cli "$$f"; \
done