-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathjustfile
More file actions
88 lines (71 loc) · 2.29 KB
/
justfile
File metadata and controls
88 lines (71 loc) · 2.29 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Default recipe to display help
default:
@just --list
# Format all code across all languages
format: format-go format-python format-nodejs format-dotnet
# Lint all code across all languages
lint: lint-go lint-python lint-nodejs lint-dotnet
# Run tests for all languages
test: test-go test-python test-nodejs test-dotnet
# Format Go code
format-go:
@echo "=== Formatting Go code ==="
@cd go && find . -name "*.go" -not -path "*/generated/*" -exec gofmt -w {} +
# Format Python code
format-python:
@echo "=== Formatting Python code ==="
@cd python && uv run ruff format .
# Format Node.js code
format-nodejs:
@echo "=== Formatting Node.js code ==="
@cd nodejs && npm run format
# Format .NET code
format-dotnet:
@echo "=== Formatting .NET code ==="
@cd dotnet && dotnet format src/GitHub.Copilot.SDK.csproj
# Lint Go code
lint-go:
@echo "=== Linting Go code ==="
@cd go && golangci-lint run ./...
# Lint Python code
lint-python:
@echo "=== Linting Python code ==="
@cd python && uv run ruff check . && uv run ty check copilot
# Lint Node.js code
lint-nodejs:
@echo "=== Linting Node.js code ==="
@cd nodejs && npm run format:check && npm run lint && npm run typecheck
@echo "=== Linting Playground ==="
@cd demos/playground && npm run format:check && npm run lint && npm run typecheck
# Lint .NET code
lint-dotnet:
@echo "=== Linting .NET code ==="
@cd dotnet && dotnet format src/GitHub.Copilot.SDK.csproj --verify-no-changes
# Test Go code
test-go:
@echo "=== Testing Go code ==="
@cd go && go test ./...
# Test Python code
test-python:
@echo "=== Testing Python code ==="
@cd python && uv run pytest
# Test Node.js code
test-nodejs:
@echo "=== Testing Node.js code ==="
@cd nodejs && npm test
# Test .NET code
test-dotnet:
@echo "=== Testing .NET code ==="
@cd dotnet && dotnet test test/GitHub.Copilot.SDK.Test.csproj
# Install all dependencies
install:
@echo "=== Installing dependencies ==="
@cd nodejs && npm ci
@cd python && uv pip install -e ".[dev]"
@cd go && go mod download
@cd dotnet && dotnet restore
@echo "✅ All dependencies installed"
# Run interactive SDK playground
playground:
@echo "=== Starting SDK Playground ==="
@cd demos/playground && npm install && npm start