-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0044416
commit 82d28af
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: E2E Test Mina Delegation Program | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
mina_daemon_image: | ||
description: 'MINA_DAEMON_IMAGE' | ||
required: true | ||
default: 'gcr.io/o1labs-192920/mina-daemon:2.0.0rampup8-56fa1db-bullseye-berkeley' | ||
uptime_service_image: | ||
description: 'UPTIME_SERVICE_IMAGE' | ||
required: true | ||
default: '673156464838.dkr.ecr.us-west-2.amazonaws.com/block-producers-uptime:2.0.0rc3-e7ad680-testworld-2-0' | ||
coordinator_branch: | ||
description: 'COORDINATOR_BRANCH' | ||
required: true | ||
default: 'update_setup_validator_process_for_testing' | ||
stateless_verifier_image: | ||
description: 'STATELESS_VERIFIER_IMAGE' | ||
required: true | ||
default: '673156464838.dkr.ecr.us-west-2.amazonaws.com/delegation-verify:0.1-8f771a8-devnet' | ||
|
||
env: | ||
MINA_DAEMON_IMAGE: ${{ github.event.inputs.mina_daemon_image }} | ||
UPTIME_SERVICE_IMAGE: ${{ github.event.inputs.uptime_service_image }} | ||
COORDINATOR_BRANCH: ${{ github.event.inputs.coordinator_branch }} | ||
STATELESS_VERIFIER_IMAGE: ${{ github.event.inputs.stateless_verifier_image }} | ||
E2E_SECRET: ${{ secrets.E2E_SECRET }} | ||
|
||
jobs: | ||
build: | ||
runs-on: minafoundation-default-runners | ||
|
||
steps: | ||
- name: 📥 Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🔑 ECR Login | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
|
||
- name: 🤌 Get Minimina | ||
uses: MinaFoundation/install-minimina-action@v1 | ||
with: | ||
stream: stable | ||
|
||
- name: Python setup | ||
run: | | ||
pip install poetry | ||
poetry install | ||
poetry shell | ||
- name: Test | ||
run: | | ||
invoke test setup | ||
invoke test start | ||
sleep 10 | ||
invoke test stop | ||
incoke test teardown | ||
- name: 📎 Upload logs | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: logs | ||
path: runtime/*.log |