Environment spin up in tests using Kurtosis #24
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 workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Docker Integration Test | |
on: [push, pull_request] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- name: Setup Kurtosis repo | |
run: echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list | |
- name: Install Kurtosis | |
run: sudo apt-get update && sudo apt-get install -y kurtosis-cli | |
- name: Build docker image | |
run: make clean && make build-docker-node | |
- name: Run cluster with 4 nodes | |
run: > | |
kurtosis run github.com/kurtosis-tech/sei-package@81dacad4bc790ee27b4463280907bb986bf352ee '{"cluster_size": 4, "num_accounts": 10, "image": "sei-chain/localnode"}' | |
- name: Verify Sei Chain is able to start up | |
run: docker exec -i sei-node-0 integration_test/startup/startup_test.sh | |
- name: Testing Dex Module | |
run: docker exec -i sei-node-0 integration_test/dex_module/place_order_test.sh | |
- name: Testing Wasm Module | |
run: | | |
docker exec -i sei-node-0 integration_test/contracts/deploy_timelocked_token_contract.sh | |
docker exec -i sei-node-0 integration_test/wasm_module/timelocked_token_test_1.sh | |
docker exec -i sei-node-0 integration_test/contracts/deploy_timelocked_token_contract.sh | |
docker exec -i sei-node-0 integration_test/wasm_module/timelocked_token_test_2.sh | |
docker exec -i sei-node-0 integration_test/contracts/deploy_timelocked_token_contract.sh migration | |
docker exec -i sei-node-0 integration_test/wasm_module/timelocked_token_test_3.sh |