-
Notifications
You must be signed in to change notification settings - Fork 20
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
* test: use `chaintestutil` (#296) * rename * fix * format * workflow * add basic test * add targetss * use commit * workflow * basic setup * add keeper * fix * fix? * update * update * update * fix * fix * go work inti (cherry picked from commit b48073d) # Conflicts: # .github/workflows/test.yml # Makefile # go.mod # go.sum # tests/e2e/go.mod # tests/e2e/go.sum # x/blocksdk/client/cli/query.go * fix --------- Co-authored-by: Alex Johnson <[email protected]>
- Loading branch information
1 parent
abee981
commit ed1928e
Showing
12 changed files
with
463 additions
and
191 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
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 |
---|---|---|
|
@@ -14,13 +14,13 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
test-unit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
go-version: 1.21.5 | ||
cache: true | ||
cache-dependency-path: go.sum | ||
- uses: technote-space/[email protected] | ||
|
@@ -34,7 +34,38 @@ jobs: | |
if: env.GIT_DIFF | ||
run: | | ||
go work init | ||
make test | ||
make test-unit | ||
- name: Test Coverage | ||
run: | | ||
make test-cover | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
files: cover.out | ||
|
||
test-integration: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.5 | ||
cache: true | ||
cache-dependency-path: go.sum | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/*.go | ||
go.mod | ||
go.sum | ||
- name: tests | ||
if: env.GIT_DIFF | ||
run: | | ||
go work init | ||
make test-integration | ||
test-e2e: | ||
runs-on: ubuntu-latest | ||
|
@@ -50,7 +81,7 @@ jobs: | |
- uses: actions/setup-go@v5 | ||
if: env.GIT_DIFF | ||
with: | ||
go-version: "1.21" | ||
go-version: 1.21.5 | ||
cache: true | ||
|
||
# In this step, this action saves a list of existing images, the cache is | ||
|
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
Oops, something went wrong.