-
Notifications
You must be signed in to change notification settings - Fork 10
96 lines (92 loc) · 3.02 KB
/
liquidation-reconstitution.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Liquidation Reconstitution E2E tests
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
network:
description: 'Select the blockchain network for testing'
required: false
default: 'emerynet'
type: choice
options:
- local
- emerynet
- devnet
- ollinet
- xnet
user1_mnemonic:
description: 'The mnemonic phrase for the account to be used for vaults'
required: false
type: string
user1_address:
description: 'user1 account address'
required: false
type: string
bidder_mnemonic:
description: 'The mnemonic phrase for the account used for bidding'
required: false
type: string
bidder_address:
description: 'bidder account address'
required: false
type: string
gov1_mnemonic:
description: 'Mnemonic for gov1 wallet'
required: false
type: string
gov1_address:
description: 'gov1 account address'
required: false
type: string
gov2_mnemonic:
description: 'Mnemonic for gov2 wallet'
required: false
type: string
gov2_address:
description: 'gov2 account address'
required: false
type: string
base_image:
description: 'Base image tag for agoric-sdk'
required: false
default: latest
type: string
pull_request:
types:
- labeled
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-e2e:
if: >-
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'liquidation-reconstitution-testing')
uses: ./.github/workflows/reusable-workflow.yml
with:
docker_compose_command: |
docker compose -f test/e2e/docker-compose-reconstitution.yml \
--profile $SYNPRESS_PROFILE up --build \
--exit-code-from synpress
AGORIC_NET: >-
${{ github.event.inputs.network
|| contains(github.event.pull_request.labels.*.name, 'emerynet') && 'emerynet'
|| contains(github.event.pull_request.labels.*.name, 'devnet') && 'devnet'
|| contains(github.event.pull_request.labels.*.name, 'ollinet') && 'ollinet'
|| contains(github.event.pull_request.labels.*.name, 'xnet') && 'xnet'
|| github.event_name == 'schedule' && 'emerynet'
|| 'local'
}}
user1_mnemonic: ${{ inputs.user1_mnemonic }}
user1_address: ${{ inputs.user1_address }}
bidder_mnemonic: ${{ inputs.bidder_mnemonic }}
bidder_address: ${{ inputs.bidder_address }}
base_image: ${{ inputs.base_image || 'latest' }}
gov1_mnemonic: ${{ inputs.gov1_mnemonic }}
gov1_address: ${{ inputs.gov1_address }}
gov2_mnemonic: ${{ inputs.gov2_mnemonic }}
gov2_address: ${{ inputs.gov2_address }}
secrets: inherit