-
Notifications
You must be signed in to change notification settings - Fork 10
61 lines (57 loc) · 1.88 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
name: Liquidation Reconstitution E2E tests
on:
schedule:
- cron: '20 1 * * *'
workflow_dispatch:
inputs:
network:
description: 'AGORIC_NET'
required: false
default: 'emerynet'
type: choice
options:
- local
- emerynet
- devnet
- ollinet
- xnet
base_image:
description: 'Base image tag for agoric-sdk'
required: false
default: latest
type: string
docker_image:
description: 'Docker image for the a3p chain to use in testing'
required: false
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' && 'local'
|| 'local'
}}
base_image: ${{ inputs.base_image || 'latest' }}
docker_image: ${{ inputs.docker_image || 'ghcr.io/agoric/agoric-3-proposals:latest' }}
secrets: inherit