Skip to content

Commit

Permalink
WIP: spin up local node in github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Ricky Saechao <[email protected]>
  • Loading branch information
RickyLB committed Nov 16, 2023
1 parent 67013a8 commit fcec095
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fcec095

Please sign in to comment.