-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from informalsystems/mergify/bp/v0.34.x/pr-60
Add abci_info implementation (backport #60)
- Loading branch information
Showing
12 changed files
with
1,104 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Automated Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- v0.37.x | ||
- v0.34.x | ||
pull_request: | ||
branches: | ||
- main | ||
- v0.37.x | ||
- v0.34.x | ||
# TODO: automated tests currently do not work on v0.34 because the simapp v0.45 | ||
# image is not available on dockerhub with the right platform. | ||
# Running locally works on some platforms, fixing the automated tests is to-do. | ||
# jobs: | ||
# Automated_Tests: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
# - uses: actions/checkout@v4 | ||
# - name: Make test | ||
# run: make test-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# import simd from cosmos-sd | ||
FROM --platform=linux/x86_64/v8 interchainio/simapp:v0.45.16 AS simapp-builder | ||
|
||
FROM golang:1.20-alpine as cometmock-builder | ||
|
||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers | ||
RUN apk add --no-cache $PACKAGES | ||
|
||
ENV CGO_ENABLED=0 | ||
ENV GOOS=linux | ||
ENV GOFLAGS="-buildvcs=false" | ||
|
||
# cache gomodules for cometmock | ||
ADD ./go.mod /go.mod | ||
ADD ./go.sum /go.sum | ||
RUN go mod download | ||
|
||
# Add CometMock and install it | ||
ADD . /CometMock | ||
WORKDIR /CometMock | ||
RUN go build -o /usr/local/bin/cometmock ./cometmock | ||
|
||
RUN apk update | ||
RUN apk add --no-cache which iputils procps-ng tmux net-tools htop jq gcompat | ||
|
||
COPY --from=simapp-builder /usr/bin/simd /usr/local/bin/simd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
install: | ||
go install ./cometmock | ||
go install ./cometmock | ||
|
||
test-locally: | ||
go test -timeout 600s ./e2e-tests -test.v | ||
|
||
test-docker: | ||
# Build the Docker image | ||
docker build -f Dockerfile-test -t cometmock-test . | ||
|
||
# Start a container and execute the test command inside | ||
docker rm cometmock-test-instance || true | ||
docker run --name cometmock-test-instance --workdir /CometMock cometmock-test go test -timeout 600s ./e2e-tests -test.v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.