feat: order force withdrawal #34
Workflow file for this run
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
name: Kalatori Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- stable | |
jobs: | |
check: | |
name: Cargo and TypeScript Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout sources | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 50 | |
submodules: recursive | |
- name: Initialize Git Submodules | |
run: git submodule update --init --recursive | |
- name: Verify directory structure | |
run: ls -R | |
- name: Install Docker using Docker's official script | |
run: | | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
- name: Install Docker Compose | |
run: | | |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.3.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker-compose --version | |
- name: Build and Start Containers | |
working-directory: ./chopsticks | |
run: | | |
docker-compose up -d --build chopsticks-polkadot chopsticks-statemint kalatori-rust-app | |
# Start dependencies in detached mode | |
- name: Wait for Dependencies to Initialize | |
run: sleep 30 # Adjust this wait time as necessary | |
- name: Run Tests | |
run: | | |
docker-compose up tests | |
exit_code=$? | |
docker-compose down | |
exit $exit_code |