Vaults E2E tests #597
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: Vaults E2E tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
types: | |
- opened | |
- reopened | |
- edited | |
- labeled | |
- synchronize | |
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 | |
phrase: | |
description: 'The mnemonic phrase for the account to use in testing' | |
required: false | |
type: string | |
docker_image: | |
description: 'Docker image for the a3p chain to use in testing' | |
required: false | |
type: string | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
run-e2e: | |
uses: ./.github/workflows/reusable-workflow.yml | |
with: | |
docker_compose_command: | | |
docker compose -f test/e2e/docker-compose-vaults.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' | |
}} | |
mnemonic_phrase: ${{ inputs.phrase }} | |
docker_image: ${{ inputs.docker_image || 'ghcr.io/agoric/agoric-3-proposals:latest' }} | |
secrets: inherit |