-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a737f3
commit d6f7b57
Showing
21 changed files
with
1,552 additions
and
64 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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.17 | ||
- name: Install runsim | ||
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.17 | ||
- name: Install runsim | ||
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/[email protected] | ||
|
@@ -33,7 +33,7 @@ jobs: | |
# - uses: actions/[email protected] | ||
# - uses: actions/[email protected] | ||
# with: | ||
# go-version: 1.16 | ||
# go-version: 1.17 | ||
# - uses: technote-space/[email protected] | ||
# with: | ||
# PATTERNS: | | ||
|
@@ -63,7 +63,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.17 | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/go/bin | ||
|
@@ -80,7 +80,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.17 | ||
- uses: actions/[email protected] | ||
- uses: technote-space/[email protected] | ||
with: | ||
|
@@ -105,7 +105,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.17 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
@@ -130,7 +130,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.17 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
@@ -144,4 +144,4 @@ jobs: | |
- name: test liveness | ||
run: | | ||
./contrib/localnet-blocks-test.sh 100 5 50 localhost | ||
if: "env.GIT_DIFF != ''" | ||
if: "env.GIT_DIFF != ''" |
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.17 | ||
- uses: actions/[email protected] | ||
- uses: technote-space/[email protected] | ||
with: | ||
|
@@ -31,7 +31,7 @@ jobs: | |
make build | ||
- name: test & coverage report creation | ||
run: | | ||
go test ./... -mod=readonly -timeout 12m -race -coverprofile=coverage.txt -covermode=atomic -tags='ledger test_ledger_mock' | ||
make test-unit-cover | ||
if: "env.GIT_DIFF != ''" | ||
- name: filter out DONTCOVER | ||
run: | | ||
|
@@ -48,4 +48,27 @@ jobs: | |
with: | ||
file: ./coverage.txt # optional | ||
fail_ci_if_error: true | ||
if: "env.GIT_DIFF != ''" | ||
if: "env.GIT_DIFF != ''" | ||
|
||
test-e2e: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 25 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.17 | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- name: Build Docker Image | ||
run: | | ||
make docker-build-debug | ||
if: env.GIT_DIFF | ||
- name: Test E2E | ||
run: | | ||
make test-e2e | ||
if: env.GIT_DIFF |
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
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,19 @@ | ||
ARG IMG_TAG=latest | ||
|
||
# Compile the gaiad binary | ||
FROM golang:1.17-alpine AS gaiad-builder | ||
WORKDIR /src/app/ | ||
COPY go.mod go.sum* ./ | ||
RUN go mod download | ||
COPY . . | ||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3 | ||
RUN apk add --no-cache $PACKAGES | ||
RUN CGO_ENABLED=0 make install | ||
|
||
# Add to a distroless container | ||
FROM gcr.io/distroless/cc:$IMG_TAG | ||
ARG IMG_TAG | ||
COPY --from=gaiad-builder /go/bin/gaiad /usr/local/bin/ | ||
EXPOSE 26656 26657 1317 9090 | ||
|
||
ENTRYPOINT ["gaiad", "start"] |
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.