Skip to content

Integration Tests

Integration Tests #25

Workflow file for this run

name: Integration Tests
on:
workflow_dispatch:
inputs:
scriptName:
type: choice
description: "Script to run"
options:
- omnichain_swap
- omnichain_staking
- omnichain_multioutput
- messaging_counter
- messaging_message
- messaging_value
- messaging_warriors
schedule:
- cron: "0 0 * * *" # Runs every day at midnight
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
scheduled_integration_tests:
needs: setup
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- name: Run All Scripts in scripts/test Directory
run: |
for script in scripts/test/*; do
if [ -f "$script" ] && [ -x "$script" ]; then
echo "Running $script..."
./$script
fi
done
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
manual_integration_tests:
needs: setup
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Print Current Directory
run: echo $(pwd)
- name: List Files
run: ls -al scripts/test/
- name: Run Script
run: |
sh /home/runner/work/example-contracts/example-contracts/scripts/test/omnichain_swap.sh
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}