Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update workflow and fix archway test script #176

Merged
merged 6 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/archway-chain-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Functional test

on:
workflow_dispatch:

jobs:
functional_test:
name: Functional Testing
runs-on: "ubuntu-latest"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Installing Kurtosis CLI and starting the kurtosis engine
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis engine start

- name: Running archway chain command tests
run: |
cd test && make run-archway
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
sudo apt install kurtosis-cli
kurtosis engine start

- name: Running functional tests
- name: Running bridge command tests
run: |
cd test && make run-functional
cd test && make run-bridge
29 changes: 29 additions & 0 deletions .github/workflows/eth-chain-test .yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Functional test

on:
workflow_dispatch:

jobs:
functional_test:
name: Functional Testing
runs-on: "ubuntu-latest"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Installing Kurtosis CLI and starting the kurtosis engine
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis engine start

- name: Running eth chain command tests
run: |
cd test && make run-eth
29 changes: 29 additions & 0 deletions .github/workflows/hardhat-chain-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Functional test

on:
workflow_dispatch:

jobs:
functional_test:
name: Functional Testing
runs-on: "ubuntu-latest"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Installing Kurtosis CLI and starting the kurtosis engine
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis engine start

- name: Running hardhat chain command tests
run: |
cd test && make run-hardhat
29 changes: 29 additions & 0 deletions .github/workflows/icon-chain-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Functional test

on:
workflow_dispatch:

jobs:
functional_test:
name: Functional Testing
runs-on: "ubuntu-latest"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Installing Kurtosis CLI and starting the kurtosis engine
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis engine start

- name: Running icon chain command tests
run: |
cd test && make run-icon
29 changes: 29 additions & 0 deletions .github/workflows/misc-cmd-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Functional test

on:
workflow_dispatch:

jobs:
functional_test:
name: Functional Testing
runs-on: "ubuntu-latest"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Installing Kurtosis CLI and starting the kurtosis engine
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis engine start

- name: Running other command tests
run: |
cd test && make run-misc
4 changes: 3 additions & 1 deletion cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/briandowns/spinner v1.23.0
github.com/fatih/color v1.15.0
github.com/google/go-github v17.0.0+incompatible
github.com/kurtosis-tech/kurtosis/api/golang v0.83.4
github.com/kurtosis-tech/kurtosis/api/golang v0.83.5
github.com/kurtosis-tech/stacktrace v0.0.0-20211028211901-1c67a77b5409
github.com/natefinch/lumberjack v2.0.0+incompatible
github.com/sirupsen/logrus v1.9.3
Expand All @@ -18,11 +18,13 @@ require (
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/adrg/xdg v0.4.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/kurtosis-tech/kurtosis/contexts-config-store v0.0.0-20230818184218-f4e3e773463b // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/stretchr/testify v1.8.4 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

Expand Down
2 changes: 1 addition & 1 deletion cli/sample-jsons/archway1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private_rpc": 26657,
"public_grpc": 9080,
"public_http": 9092,
"public_tcp": 26658,
"public_tcp": 26659,
"public_rpc": 4566,
"password": "password"
}
Expand Down
26 changes: 23 additions & 3 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,29 @@ run-smoke: BINARY
@echo "Running Smoke test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Smoke Tests" -v

run-functional: BINARY
@echo "Running all functional test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Functional Tests" -v -timeout=3h
run-bridge: BINARY
@echo "Running all bridge test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Bridge command Test" -v -timeout=3h

run-icon: BINARY
@echo "Running icon chain commands test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Icon chain commands" -v -timeout=3h

run-eth: BINARY
@echo "Running eth chain commands test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Eth chain commands" -v -timeout=3h

run-hardhat: BINARY
@echo "Running hardhat chain commands test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Hardhat chain commands" -v -timeout=3h

run-archway: BINARY
@echo "Running archway chain commands test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Archway chain commands" -v -timeout=3h

run-misc: BINARY
@echo "Running other test cases"
@cd $(CURDIR)/functional && ginkgo --focus="Other commands" -v -timeout=3h

BINARY: GINKGO
@cd $(CURDIR)/../cli && go build -o dive
Expand Down
Loading