-
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 #74 from informalsystems/main
Update v0.38.x branch to current status of main
- Loading branch information
Showing
24 changed files
with
1,989 additions
and
559 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
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,22 @@ | ||
name: Automated Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- v0.38.x | ||
- v0.37.x | ||
- v0.34.x | ||
pull_request: | ||
branches: | ||
- main | ||
- v0.38.x | ||
- v0.37.x | ||
- v0.34.x | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# import simd from ibc-go | ||
FROM ghcr.io/cosmos/simapp:0.50.0-rc.1 AS simapp-builder | ||
|
||
FROM golang:1.21-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
Oops, something went wrong.