Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: test on CI regardless of modded file #5621

Merged
merged 6 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
- 'tools/block-generator/**'
- 'tools/x-repo-types/**'
pull_request:
paths:
- 'tools/block-generator/**'
- 'tools/x-repo-types/**'

jobs:
tools_test:
Expand Down
25 changes: 19 additions & 6 deletions tools/x-repo-types/Makefile
Original file line number Diff line number Diff line change
@@ -1,38 +1,51 @@
all: goal-v-sdk goal-v-spv
all: clean goal-v-sdk goal-v-spv

clean:
rm x-repo-types

x-repo-types:
go build

# go-algorand vs go-algorand-sdk:

goal-v-sdk: goal-v-sdk-state-delta goal-v-sdk-genesis goal-v-sdk-block goal-v-sdk-blockheader goal-v-sdk-stateproof

goal-v-sdk-state-delta:
goal-v-sdk-state-delta: x-repo-types
x-repo-types --x-package "github.com/algorand/go-algorand/ledger/ledgercore" \
--x-type "StateDelta" \
--y-branch "develop" \
tzaffi marked this conversation as resolved.
Show resolved Hide resolved
--y-package "github.com/algorand/go-algorand-sdk/v2/types" \
--y-type "LedgerStateDelta"

goal-v-sdk-genesis:
goal-v-sdk-genesis: x-repo-types
x-repo-types --x-package "github.com/algorand/go-algorand/data/bookkeeping" \
--x-type "Genesis" \
--y-branch "develop" \
--y-package "github.com/algorand/go-algorand-sdk/v2/types" \
--y-type "Genesis"

goal-v-sdk-block:
goal-v-sdk-block: x-repo-types
x-repo-types --x-package "github.com/algorand/go-algorand/data/bookkeeping" \
--x-type "Block" \
--y-branch "develop" \
--y-package "github.com/algorand/go-algorand-sdk/v2/types" \
--y-type "Block"

goal-v-sdk-blockheader:
goal-v-sdk-blockheader: x-repo-types
x-repo-types --x-package "github.com/algorand/go-algorand/data/bookkeeping" \
--x-type "BlockHeader" \
--y-branch "develop" \
--y-package "github.com/algorand/go-algorand-sdk/v2/types" \
--y-type "BlockHeader"

goal-v-sdk-stateproof:
goal-v-sdk-consensus: x-repo-types
x-repo-types --x-package "github.com/algorand/go-algorand/config" \
--x-type "ConsensusParams" \
--y-branch "develop" \
--y-package "github.com/algorand/go-algorand-sdk/v2/protocol/config" \
--y-type "ConsensusParams"

goal-v-sdk-stateproof: x-repo-types
x-repo-types --x-package "github.com/algorand/go-algorand/crypto/stateproof" \
--x-type "StateProof" \
--y-branch "develop" \
Expand Down
2 changes: 1 addition & 1 deletion tools/x-repo-types/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
replace github.com/algorand/go-algorand => ../..

require (
github.com/algorand/go-algorand v0.0.0-20230502140608-e24a35add0bb
github.com/algorand/go-algorand v0.0.0-20230731133715-1bf7a214788a
tzaffi marked this conversation as resolved.
Show resolved Hide resolved
github.com/spf13/cobra v1.7.0
github.com/stretchr/testify v1.8.4
)
Expand Down