Skip to content

Commit 32fd993

Browse files
johnleteyboojamya
andauthored
feat: add simapp & e2e tests (#9)
* feat: add simapp & e2e tests Co-authored-by: Dan Kanefsky <daniel.kanefsky@gmail.com> * chore: fix ci * chore: small nits * chore: restructure ci * chore: switch away from fork --------- Co-authored-by: Dan Kanefsky <daniel.kanefsky@gmail.com>
1 parent 33b30a6 commit 32fd993

27 files changed

Lines changed: 8995 additions & 142 deletions
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: E2E Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
e2e-tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v3
13+
14+
- name: Install Go
15+
uses: actions/setup-go@v4
16+
with:
17+
go-version: 1.21
18+
19+
- name: Install Heighliner
20+
run: go install github.com/strangelove-ventures/heighliner@latest
21+
22+
- name: Build Image
23+
run: make heighliner
24+
25+
- name: Run E2E Tests
26+
run: make test-e2e

β€Ž.github/workflows/unit-tests.yamlβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Unit Tests
22

33
on:
44
pull_request:
5+
push:
56

67
jobs:
78
unit-tests:
@@ -16,4 +17,4 @@ jobs:
1617
go-version: 1.21
1718

1819
- name: Run Unit Tests
19-
run: go test -cover -race -v ./x/...
20+
run: make test-unit

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.idea
2+
build

β€ŽMakefileβ€Ž

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
.PHONY: proto-setup proto-format proto-lint proto-gen format lint test
2-
all: proto-all format lint test
1+
.PHONY: proto-setup proto-format proto-lint proto-gen format lint test-e2e test-unit build
2+
all: proto-all format lint test-unit build
3+
4+
###############################################################################
5+
### Build ###
6+
###############################################################################
7+
8+
build:
9+
@echo "πŸ€– Building simd..."
10+
@cd simapp && make build
11+
@echo "βœ… Completed build!"
312

413
###############################################################################
514
### Formatting & Linting ###
@@ -53,7 +62,19 @@ proto-setup:
5362
### Testing ###
5463
###############################################################################
5564

56-
test:
57-
@echo "πŸ€– Running tests..."
65+
heighliner:
66+
@echo "πŸ€– Building image..."
67+
@heighliner build --chain noble-fiattokenfactory-simd --local 1> /dev/null
68+
@echo "βœ… Completed build!"
69+
70+
test: test-e2e test-unit
71+
72+
test-e2e:
73+
@echo "πŸ€– Running e2e tests..."
74+
@cd e2e && GOWORK=off go test -race -v ./...
75+
@echo "βœ… Completed e2e tests!"
76+
77+
test-unit:
78+
@echo "πŸ€– Running unit tests..."
5879
@go test -cover -race -v ./x/...
59-
@echo "βœ… Completed tests!"
80+
@echo "βœ… Completed unit tests!"

β€Žchains.yamlβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- name: noble-fiattokenfactory-simd
2+
dockerfile: cosmos
3+
build-target: make build
4+
binaries:
5+
- simapp/build/simd

0 commit comments

Comments
Β (0)