Skip to content

Commit

Permalink
add verify genesis state job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
demisx committed Jan 5, 2023
1 parent 8679586 commit ea31a44
Show file tree
Hide file tree
Showing 2 changed files with 537 additions and 468 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ jobs:
include:
- network: local
spec: frequency-rococo-local
genesis: "skip"
# genesis: "skip"
build-profile: release
release-file-name-prefix: frequency-local
- network: rococo
spec: frequency-rococo-testnet
genesis: "0x000000000000000000000000000000000000000000000000000000000000000000e3495742b019f5ad49dff7de4040bc965b75eaf46769c24db1027d4ff86fc92703170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400"
# genesis: "0x000000000000000000000000000000000000000000000000000000000000000000e3495742b019f5ad49dff7de4040bc965b75eaf46769c24db1027d4ff86fc92703170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400"
build-profile: production
release-file-name-prefix: frequency-rococo
- network: mainnet
spec: frequency
genesis: "0x000000000000000000000000000000000000000000000000000000000000000000393a2a0f7778716d006206c5a4787cbf2ea3b26a67379b7a38ee54519d7fd4be03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400"
# genesis: "0x000000000000000000000000000000000000000000000000000000000000000000393a2a0f7778716d006206c5a4787cbf2ea3b26a67379b7a38ee54519d7fd4be03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400"
build-profile: production
release-file-name-prefix: frequency
- os: [self-hosted, Linux, X64]
Expand Down Expand Up @@ -105,12 +105,12 @@ jobs:
- name: Verify Binary
working-directory: ${{env.BIN_DIR}}
run: gpg --verify ${{env.RELEASE_BIN_FILENAME}}.asc
- name: Test Genesis State
if: matrix.genesis != 'skip'
run: |
echo "Expected genesis state: ${{matrix.genesis}}"
echo " Actual genesis state: " $(${{env.BIN_DIR}}/${{env.BUILT_BIN_FILENAME}} export-genesis-state)
[[ $(${{env.BIN_DIR}}/${{env.BUILT_BIN_FILENAME}} export-genesis-state) == ${{matrix.genesis}} ]]
# - name: Test Genesis State
# if: matrix.genesis != 'skip'
# run: |
# echo "Expected genesis state: ${{matrix.genesis}}"
# echo " Actual genesis state: " $(${{env.BIN_DIR}}/${{env.BUILT_BIN_FILENAME}} export-genesis-state)
# [[ $(${{env.BIN_DIR}}/${{env.BUILT_BIN_FILENAME}} export-genesis-state) == ${{matrix.genesis}} ]]
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
Loading

0 comments on commit ea31a44

Please sign in to comment.