-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (45 loc) · 1.5 KB
/
test-internal-chain.yaml
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
name: Test internal chain
on:
workflow_dispatch:
inputs:
network:
required: true
description: 'internal network name'
default: 'odin-internal'
type: choice
options:
- odin-internal
- heimdall-internal
- thor-internal
offset:
required: true
description: 'Insert the snapshot tip index of the internal network (e.g. 1115268)'
limit:
required: true
description: 'Insert how many blocks from the mainnet to test (e.g. 100)'
delay_interval:
required: false
default: 0
description: 'Insert the delay interval(sec) when staging the mainnet txs to the internal network per block (default: 0)'
jobs:
test-internal-chain:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- uses: actions/[email protected]
with:
python-version: 3.10.13
- run: |
python -m pip install -r requirements.txt
flit install
name: install dependencies
working-directory: ./scripts
- name: Test internal chain
run: |
python cli.py test-internal-chain ${{ github.event.inputs.network }} ${{ github.event.inputs.offset }} ${{ github.event.inputs.limit }} ${{ github.event.inputs.delay_interval }}
working-directory: ./scripts
env:
GITHUB_TOKEN: ${{ secrets.P_GITHUB_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}