-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: run local node in e2e tests (#318)
- Loading branch information
Showing
4 changed files
with
77 additions
and
3 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
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 |
---|---|---|
|
@@ -59,5 +59,20 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-${{ matrix.swift }}-spm- | ||
- name: "Create env file" | ||
run: | | ||
touch .env | ||
echo TEST_OPERATOR_KEY="302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137" >> .env | ||
echo TEST_OPERATOR_ID="0.0.2" >> .env | ||
echo TEST_HEDERA_NETWORK="localhost" >> .env | ||
echo TEST_RUN_NONFREE="1" >> .env | ||
cat .env | ||
- name: Start the local node | ||
run: npx @hashgraph/[email protected] start -d --network local | ||
|
||
- name: Test | ||
run: swift test | ||
|
||
- name: Stop the local node | ||
run: npx @hashgraph/[email protected] stop |
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
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