github.com/hashgraph/hedera-sdk-go/v2@v2.48.0/Taskfile.yml (about) 1 version: "3" 2 3 tasks: 4 default: 5 deps: 6 - build 7 8 build: 9 cmds: 10 - go build 11 12 clean: 13 cmds: 14 - go clean 15 16 format: 17 cmds: 18 - go fmt && goimports -w *.go 19 20 lint: 21 cmds: 22 - golangci-lint run 23 update: 24 cmds: 25 - go test -tags="all" -v -run TestIntegrationAddressBookQueryUpdateAll 26 test: 27 deps: 28 - "test:unit" 29 - "test:integration" 30 31 "test:unit": 32 cmds: 33 - go test -tags="unit" -v 34 35 "test:integration": 36 cmds: 37 - go test -tags="e2e" -v -timeout 9999s 38 run-examples: 39 cmds: 40 - | 41 for example in examples/*; do 42 dir_name=$(basename "$example") 43 # Skip the consensus_pub_sub_chunked directory 44 if [ "$dir_name" == "consensus_pub_sub_chunked" ]; then 45 echo "Skipping $example" 46 continue 47 fi 48 if [ -d "$example" ]; then 49 50 pushd "$example" > /dev/null 51 if [ -f main.go ]; then 52 echo "Running $example/main.go" 53 env OPERATOR_KEY="302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137" OPERATOR_ID="0.0.2" HEDERA_NETWORK="localhost" go run main.go 54 fi 55 popd > /dev/null 56 fi 57 done 58