Skip to content
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
47 changes: 41 additions & 6 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
interactor-tests:
name: Interactor Tests
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -57,16 +58,50 @@ jobs:

- name: Setup Docker
run: |
sudo systemctl start docker || true
docker pull multiversx/chainsimulator || true
sudo systemctl start docker
docker pull multiversx/chainsimulator

- name: Run targeted interactor test via wrapper
- name: Run first interactor test suite
timeout-minutes: 60
env:
PATH: ${{ github.workspace }}/interactor/scripts:${{ env.PATH }}
WORKSPACE_ROOT: ${{ github.workspace }}
MAX_TEST_CONCURRENCY: "4"
MAX_TEST_CONCURRENCY: "2"
GITHUB_ACTIONS: "true"
run: |
cargo test --package rust-interact --test complete_flow_tests --all-features
cargo test --package rust-interact --test mvx_esdt_safe_tests --all-features
cargo test --package rust-interact --test complete_flow_tests --all-features

- name: Cleanup containers after first test suite
if: always()
run: |
# Clean up containers from first test suite before starting second
CONTAINERS=$(docker ps -a --filter "name=chain-sim-" --format "{{.ID}}")
if [ -n "$CONTAINERS" ]; then
echo "Cleaning up containers: $CONTAINERS"
docker stop $CONTAINERS
docker rm -f $CONTAINERS
fi
# Wait a moment for ports to be released
sleep 2

- name: Run second interactor test suite
timeout-minutes: 60
env:
PATH: ${{ github.workspace }}/interactor/scripts:${{ env.PATH }}
WORKSPACE_ROOT: ${{ github.workspace }}
MAX_TEST_CONCURRENCY: "2"
GITHUB_ACTIONS: "true"
run: |
cargo test --package rust-interact --test mvx_esdt_safe_tests --all-features

- name: Cleanup chain simulator containers
if: always()
run: |
# Remove only the per-test chain simulator containers created by the wrapper
CONTAINERS=$(docker ps -a --filter "name=chain-sim-" --format "{{.ID}}")
if [ -n "$CONTAINERS" ]; then
echo "Final cleanup of containers: $CONTAINERS"
docker stop $CONTAINERS
docker rm -f $CONTAINERS
fi

Loading
Loading