-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFluxFile
More file actions
82 lines (69 loc) · 1.4 KB
/
Copy pathFluxFile
File metadata and controls
82 lines (69 loc) · 1.4 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
var PROJECT = fluxfile
task fmt:
desc: Format code
run:
go fmt ./...
task lint:
desc: Run linter
deps: fmt
run:
golangci-lint run
task build:
desc: Build the Go binary
deps: lint
cache: true
inputs:
**/*.go
go.mod
go.sum
outputs:
bin/${PROJECT}
run:
go build -o bin/${PROJECT} ./cmd/${PROJECT}
task test:
desc: Run all tests
deps: build
run:
go test ./... -v
task dev:
desc: Watch and rebuild
watch: **/*.go
ignore:
vendor/**
**/*_test.go
run:
go run ./cmd/${PROJECT}
task clean:
desc: Remove build artifacts
run:
Remove-Item -Recurse -Force bin/ -ErrorAction SilentlyContinue
task task1:
desc: Parallel task 1
run:
echo "Task 1 starting..."
Start-Sleep -Seconds 1
echo "Task 1 done"
task task2:
desc: Parallel task 2
run:
echo "Task 2 starting..."
Start-Sleep -Seconds 1
echo "Task 2 done"
task task3:
desc: Parallel task 3
run:
echo "Task 3 starting..."
Start-Sleep -Seconds 1
echo "Task 3 done"
task parallel-all:
desc: Run tasks in parallel
deps: task1, task2, task3
parallel: true
run:
echo "All parallel tasks complete!"
profile dev:
env:
GO_ENV = development
profile prod:
env:
GO_ENV = production