This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github action to start ephemeral cluster and run RPC tests (#16)
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: ephemeral | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- 'v*.*.*' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
- name: Clone ephemeral-cluster repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: celestiaorg/ephemeral-cluster | ||
path: ephemeral-cluster | ||
ref: main | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: "Setup Cluster" | ||
run: | | ||
cd ephemeral-cluster | ||
./debug-start-cluster.sh | ||
- name: "Test Cluster" | ||
run: | | ||
docker ps -a | ||
echo "------------- docker logs core0 -------------" | ||
docker logs core0 | ||
echo "------------- docker logs bridge0 -------------" | ||
docker logs bridge0 | ||
echo "------------- docker logs light0 -------------" | ||
docker logs light0 | ||
echo "------------- docker logs dalc0 -------------" | ||
docker logs dalc0 | ||
echo "------------- docker logs evmos0 -------------" | ||
docker logs evmos0 | ||
cd /home/runner/work/ethermint/ethermint | ||
MODE=rpc HOST=http://127.0.0.1:8545 go test ./tests/rpc/... | ||
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