Skip to content

Commit

Permalink
fix: vet and build the /sdk and /examples at the same time
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
  • Loading branch information
0xivanov committed Jan 10, 2025
1 parent 78ab2cd commit ed11b78
Show file tree
Hide file tree
Showing 7 changed files with 1,417 additions and 1,761 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Vet Examples
run: go vet ./examples/...
- name: Vet SDK and Examples
run: go vet ./...

- name: Vet
run: go vet ./sdk

- name: Build
run: go build -v ./sdk
- name: Build SDK and Examples
run: go build -v ./...

- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
Expand Down Expand Up @@ -100,7 +97,6 @@ jobs:
if: success()
run: npx @hashgraph/hedera-local start -d --network local --network-tag=0.57.0


- name: Tests Unit
if: success()
run: go test ./sdk -tags="unit" -timeout 9999s -v -coverprofile=unit.out -covermode=atomic -race
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/previewnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Vet Examples
run: go vet ./examples/...

- name: Vet
run: go vet ./sdk
- name: Vet SDK and Examples
run: go vet ./...

- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Vet Examples
run: go vet ./sdk
- name: Vet SDK and Examples
run: go vet ./...

- name: Vet
run: go vet ./sdk

- name: Build
run: go build -v ./sdk
- name: Build SDK and Examples
run: go build -v ./...

test:
name: Test
Expand Down
6 changes: 4 additions & 2 deletions sdk/account_allowance_approve_transaction.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package hiero

import "github.com/hiero-ledger/hiero-sdk-go/v2/proto/services"

// SPDX-License-Identifier: Apache-2.0

import (
"github.com/hiero-ledger/hiero-sdk-go/v2/proto/services"
)

// AccountAllowanceApproveTransaction
// Creates one or more hbar/token approved allowances <b>relative to the owner account specified in the allowances of
// tx transaction</b>. Each allowance grants a spender the right to transfer a pre-determined amount of the owner's
Expand Down
2,037 changes: 895 additions & 1,142 deletions sdk/addressbook/mainnet.pb

Large diffs are not rendered by default.

577 changes: 264 additions & 313 deletions sdk/addressbook/previewnet.pb

Large diffs are not rendered by default.

528 changes: 244 additions & 284 deletions sdk/addressbook/testnet.pb

Large diffs are not rendered by default.

0 comments on commit ed11b78

Please sign in to comment.