Liquidation E2E tests #683
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Liquidation E2E tests | |
on: | |
schedule: | |
- cron: '10 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-testing') | |
uses: ./.github/workflows/reusable-workflow.yml | |
with: | |
docker_compose_command: | | |
docker compose -f test/e2e/docker-compose-liquidation.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 |