-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: David Terpay <[email protected]>
- Loading branch information
1 parent
36f3033
commit 8976d59
Showing
20 changed files
with
3,060 additions
and
60 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 |
---|---|---|
|
@@ -33,3 +33,34 @@ jobs: | |
if: env.GIT_DIFF | ||
run: | | ||
make test | ||
test-e2e: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 25 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- uses: actions/setup-go@v4 | ||
if: env.GIT_DIFF | ||
with: | ||
go-version: "1.20" | ||
cache: true | ||
|
||
# In this step, this action saves a list of existing images, the cache is | ||
# created without them in the post run. It also restores the cache if it | ||
# exists. | ||
- name: cache docker layer | ||
uses: satackey/[email protected] | ||
if: env.GIT_DIFF | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
|
||
- name: Test E2E | ||
if: env.GIT_DIFF | ||
run: | | ||
make test-e2e |
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,17 @@ | ||
FROM golang:1.20-bullseye AS builder | ||
|
||
WORKDIR /src/pob | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
WORKDIR /src/pob | ||
COPY . . | ||
RUN make build-test-app | ||
|
||
## Prepare the final clear binary | ||
FROM ubuntu:rolling | ||
EXPOSE 26656 26657 1317 9090 7171 | ||
ENTRYPOINT ["testappd", "start"] | ||
|
||
COPY --from=builder /src/pob/build/* /usr/local/bin/ | ||
RUN apt-get update && apt-get install ca-certificates -y |
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.