Skip to content

Commit

Permalink
ci: test for warning on using default GENESIS_SK
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed May 20, 2024
1 parent 7bf2f7b commit c785bfd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
platform: ubuntu-latest
set-safe-peers: false

- name: Check we're _not_ warned about using default genesis
run: |
if rg "USING DEFAULT" $NODE_DATA_PATH;; then
exit 1
fi
shell: bash
# In this case we did *not* want SAFE_PEERS to be set to another value by starting the testnet
- name: Check SAFE_PEERS was not changed
shell: bash
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,13 @@ jobs:
platform: ubuntu-latest
build: true

- name: Check we're _not_ warned about using default genesis
run: |
if rg "USING DEFAULT" "${{ matrix.safe_path }}"/*/*/logs; then
exit 1
fi
shell: bash

# The test currently fails because the GH runner runs out of disk space. So we clear out the target dir here.
# Might be related to additional deps used in the codebase.
- name: Move built binaries and clear out target dir
Expand Down

0 comments on commit c785bfd

Please sign in to comment.