-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: spin up local node in github actions
Signed-off-by: Ricky Saechao <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 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 |
---|---|---|
|
@@ -56,5 +56,20 @@ jobs: | |
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Start the local node | ||
run: npx @hashgraph/[email protected] start -d --network local | ||
|
||
- name: "Create env file" | ||
run: | | ||
touch .env | ||
echo OPERATOR_KEY="302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137" >> .env | ||
echo OPERATOR_ID="0.0.2" >> .env | ||
echo HEDERA_NETWORK="localhost" >> .env | ||
echo TEST_RUN_NONFREE="1" >> .env | ||
cat .env | ||
- name: Test | ||
run: cargo test --workspace | ||
|
||
- name: Stop the local node | ||
run: npx @hashgraph/[email protected] stop |