-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More test cases and ethereum transaction start Add support for Acceptance tests to run in CI/CD flow - Add a `localAcceptance.env` that provides configurations for local-node runs - Update package to pull latest npm version of `hedera-local-node` Co-authored-by: Nana-EC <nana@swirldslabs.com>
- Loading branch information
1 parent
c8a0572
commit 7ac4ff8
Showing
5 changed files
with
66 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Acceptance Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, release/** ] | ||
push: | ||
branches: [ main, release/** ] | ||
tags: [ v* ] | ||
|
||
jobs: | ||
setup-local-hedera: | ||
name: Acceptance Tests | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install packages | ||
run: npm ci | ||
|
||
- name: Create .env file | ||
run: cp ./packages/server/tests/localAcceptance.env .env | ||
|
||
- name: Lerna Bootstrap | ||
run: npm run setup | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Build Typescript | ||
run: npx lerna run build | ||
|
||
- name: Run acceptance tests | ||
run: npm run acceptancetest |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
HEDERA_NETWORK={"127.0.0.1:50211":"0.0.3"} | ||
OPERATOR_ID_MAIN=0.0.2 | ||
OPERATOR_KEY_MAIN=302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137 | ||
CHAIN_ID=0x12a | ||
MIRROR_NODE_URL=http://127.0.0.1:5551 | ||
LOCAL_NODE=true | ||
SERVER_PORT=7546 |