-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
47 lines (39 loc) · 1 KB
/
Taskfile.yaml
File metadata and controls
47 lines (39 loc) · 1 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
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
version: "3"
tasks:
default:
desc: List available tasks
cmds:
- task --list
silent: true
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run ./...
fmt:
desc: Format Go source files with goimports
cmds:
- goimports -w .
test:
desc: Run all tests
cmds:
- go test -v ./...
test-coverage:
desc: Run tests with coverage report
cmds:
- go test -coverprofile=coverage.out ./...
- go tool cover -html=coverage.out -o coverage.html
silent: true
install-slimrpc-compiler:
desc: Install protoc-gen-slimrpc-go via cargo (skipped if already installed)
status:
- which protoc-gen-slimrpc-go
cmds:
- cargo install agntcy-protoc-slimrpc-plugin
generate:
desc: Generate protobuf and slimrpc stubs into a2apb/ (requires buf and cargo)
deps:
- install-slimrpc-compiler
cmds:
- buf generate