-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(e2e): add integration tests (#100)
* add integration tests * add workflow --------- Co-authored-by: David Terpay <[email protected]>
- Loading branch information
1 parent
25ab054
commit 454d2e5
Showing
13 changed files
with
430 additions
and
1,715 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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.2 | ||
go-version: 1.21 | ||
cache: true | ||
cache-dependency-path: go.sum | ||
- uses: technote-space/[email protected] | ||
|
@@ -33,36 +33,37 @@ jobs: | |
- name: Unit Tests | ||
if: env.GIT_DIFF | ||
run: | | ||
go work init | ||
make test | ||
# TODO: Add this back once we have a working version of v0.50.0 with ITS and v0.47.x | ||
# test-integration: | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 25 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - 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 | ||
test-integration: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 25 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- 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.21" | ||
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 | ||
# 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: Integration Tests | ||
# if: env.GIT_DIFF | ||
# run: | | ||
# make test-integration | ||
- name: Integration Tests | ||
if: env.GIT_DIFF | ||
run: | | ||
go work init | ||
make test-integration |
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
2 changes: 1 addition & 1 deletion
2
contrib/images/pob.integration.Dockerfile → ...b/images/block-sdk.integration.Dockerfile
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,4 +1,4 @@ | ||
FROM golang:1.20-bullseye AS builder | ||
FROM golang:1.21-bullseye AS builder | ||
|
||
WORKDIR /src/pob | ||
COPY . . | ||
|
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,6 +1,6 @@ | ||
module github.com/skip-mev/block-sdk | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
cosmossdk.io/api v0.7.1 | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.