Skip to content

Commit

Permalink
add: system-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianToledano committed Jan 20, 2025
1 parent a5712cf commit 691db1b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,29 @@ jobs:
- name: tests
if: env.GIT_DIFF
run: |
make plugin && make test
make plugin && make test
test-system:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.1"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
*
**/*.go
go.mod
go.sum
Makefile
- name: tests
if: env.GIT_DIFF
run: |
make test-system
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test-system: build
$(MAKE) -C ./build/tmp/cosmos-sdk build
cp ./build/tmp/cosmos-sdk/build/simd$(if $(findstring v2,$(COSMOS_BUILD_OPTIONS)),v2) ./tests/systemtests/binaries/
cp ./build/rosetta ./tests/systemtests/binaries/
#$(MAKE) -C tests/systemtests test
$(MAKE) -C tests/systemtests test
rm -rf ./build/tmp

test-rosetta-ci:
Expand Down
6 changes: 6 additions & 0 deletions tests/systemtests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/make -f

WAIT_TIME ?= 45s

test:
go test -mod=readonly -failfast -timeout=15m -tags='system_test' ./... --wait-time=$(WAIT_TIME) --verbose

0 comments on commit 691db1b

Please sign in to comment.