-
Notifications
You must be signed in to change notification settings - Fork 49
56 lines (49 loc) · 1.45 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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:
scheduled_integration_tests:
if: github.event_name == 'schedule'
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
- 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:
if: github.event_name == 'workflow_dispatch'
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
- name: Run Script
run: |
sh ${{ github.workspace }}/scripts/test/${{ github.event.inputs.scriptName }}.sh
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}