forked from wso2/openfgc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
47 lines (38 loc) · 1.02 KB
/
Copy pathTaskfile.yml
File metadata and controls
47 lines (38 loc) · 1.02 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
version: '3'
vars:
GOLANGCI_LINT_VERSION: v2.12.2
tasks:
fmt:
desc: Format Go source files
cmds:
- gofmt -w cmd internal tests
fmt:check:
desc: Check formatting without modifying files
cmds:
- gofmt -l cmd internal tests
lint:
desc: Run golangci-lint (no global install required)
cmds:
- go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@{{.GOLANGCI_LINT_VERSION}} run ./...
lint:install:
desc: Install golangci-lint to GOPATH/bin (optional)
cmds:
- go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@{{.GOLANGCI_LINT_VERSION}}
test:
desc: Run all tests
cmds:
- go test ./... -v
build:
desc: Build the BFF binary
cmds:
- go build -o bin/portal-backend{{if eq OS "windows"}}.exe{{end}} ./cmd/server
run:
desc: Run the BFF server
cmds:
- go run ./cmd/server
run:env:
desc: Run the BFF server with variables loaded from .env
dotenv:
- .env
cmds:
- go run ./cmd/server