-
Notifications
You must be signed in to change notification settings - Fork 305
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
5640eea
commit 8ba0736
Showing
2 changed files
with
55 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,31 @@ | ||
name: Summoner smoke Test | ||
on: | ||
pull_request: # Temp: for testing only, this will be slow so will run on demand | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
smoke_test: | ||
runs-on: buildjet-16vcpu-ubuntu-2004 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
environment: smoke-test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
- name: Load rust cache | ||
uses: astriaorg/[email protected] | ||
|
||
- name: Begin phase 1 | ||
run: | | ||
export PATH="$HOME/bin:$PATH" | ||
./deployments/scripts/summoner_phase1.sh | ||
env: | ||
TESTNET_RUNTIME: 2m |
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,24 @@ | ||
#!/bin/bash | ||
# Run e2e summoner ceremony in CI | ||
set -euo pipefail | ||
|
||
export RUST_LOG="summonerd=info,pcli=info" | ||
|
||
echo "Building latest version of summonerd from source..." | ||
cargo build --quiet --release --bin summonerd | ||
|
||
echo "Generating phase 1 root..." | ||
cargo run --quiet --release --bin summonerd -- generate-phase1 --output phase1.bin | ||
|
||
echo "Setting up storage directory..." | ||
mkdir /tmp/summonerd | ||
cargo run --quiet --release --bin pcli -- --home /tmp/summonerd --node https://grpc.testnet-preview.penumbra.zone keys generate | ||
export SUMMONER_ADDRESS=$(PCLI_UNLEASH_DANGER="yes" cargo run --quiet --release --bin pcli -- --home /tmp/summonerd --node https://grpc.testnet-preview.penumbra.zone view address 0 2>&1) | ||
export SUMMONER_FVK=$(PCLI_UNLEASH_DANGER="yes" cargo run --quiet --release --bin pcli -- --home /tmp/summonerd --node https://grpc.testnet-preview.penumbra.zone keys export full-viewing-key 2>&1) | ||
|
||
echo "Starting phase 1..." | ||
cargo run --quiet --release --bin summonerd -- start --phase 1 --storage-dir /tmp/summonerd --fvk $SUMMONER_FVK --node https://grpc.testnet-preview.penumbra.zone | ||
|
||
# TODO: Run phase 1 contributions | ||
|
||
exit 0 |