-
Notifications
You must be signed in to change notification settings - Fork 66
/
Taskfile.yml
58 lines (49 loc) · 1.57 KB
/
Taskfile.yml
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
version: "3"
tasks:
default:
deps:
- build
build:
cmds:
- go build
clean:
cmds:
- go clean
format:
cmds:
- go fmt && goimports -w *.go
lint:
cmds:
- golangci-lint run
update:
cmds:
- go test -tags="all" -v -run TestIntegrationAddressBookQueryUpdateAll
test:
deps:
- "test:unit"
- "test:integration"
"test:unit":
cmds:
- go test -tags="unit" -v
"test:integration":
cmds:
- go test -tags="e2e" -v -timeout 9999s
run-examples:
cmds:
- |
for example in examples/*; do
dir_name=$(basename "$example")
# Skip the consensus_pub_sub_chunked directory
if [ "$dir_name" == "consensus_pub_sub_chunked" ] || [ "$dir_name" == "initialize-client-with-mirror-node-adress-book" ]; then
echo "Skipping $example"
continue
fi
if [ -d "$example" ]; then
pushd "$example" > /dev/null
if [ -f main.go ]; then
echo "Running $example/main.go"
env OPERATOR_KEY="302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137" OPERATOR_ID="0.0.2" HEDERA_NETWORK="localhost" go run main.go
fi
popd > /dev/null
fi
done