Skip to content

Commit

Permalink
milestone 1: Add type registry and test (#327)
Browse files Browse the repository at this point in the history
* milestone: Add type registry and test

* milestone1: Add metadatas from multiple chains and docker file for tests

* registry: Add methods to create call and error registries

* dockerfile: Fix test Dockerfile

* registry: Add more tests
  • Loading branch information
cdamian committed Jul 4, 2023
1 parent eded99d commit 846c0bf
Show file tree
Hide file tree
Showing 11 changed files with 2,957 additions and 635 deletions.
7 changes: 7 additions & 0 deletions Dockerfile_milestone1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM golang:1.18

COPY . /go-substrate-rpc-client/events-parsing-v2/milestone-1

WORKDIR /go-substrate-rpc-client/events-parsing-v2/milestone-1

CMD go test -v ./registry/... --cover
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ test-types-decode: ## run tests for types decode
generate-mocks: ## generate mocks
@docker run -v `pwd`:/app -w /app --entrypoint /bin/sh vektra/mockery:v2.13.0-beta.1 -c 'go generate ./...'

test-milestone1:
@docker build -t gsrpc-m1 -f Dockerfile_milestone1 .
@docker run --rm gsrpc-m1

help: ## shows this help
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)

Expand Down
Loading

0 comments on commit 846c0bf

Please sign in to comment.