-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from datachainlab/fix-for-integration-test
Fix web3-gateway to use iroha addresses everywhere and add integration testing for the onchain module
- Loading branch information
Showing
45 changed files
with
57,986 additions
and
5,447 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,55 @@ | ||
name: onchain-module | ||
on: | ||
pull_request: | ||
paths: | ||
- "docker/**" | ||
- "onchain-module/**" | ||
- ".github/workflows/test-onchain-module.yml" | ||
|
||
jobs: | ||
test-integration: | ||
name: test-integration | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Go 1.16 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Set up Node.js 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- uses: actions/checkout@v2 | ||
- name: Cache go modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: | | ||
${{ github.workspace }}/onchain-module/node_modules | ||
key: ${{ runner.os }}-onchain-module-integration-${{ hashFiles('onchain-module/tests/e2e/contracts/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-onchain-module-integration- | ||
- name: Run docker-compose | ||
run: docker compose up -d iroha-node0 iroha-node0-postgres iroha-web3-gateway0 | ||
- name: Download NPM dependency | ||
working-directory: onchain-module | ||
run: | | ||
npm install | ||
- name: Migrate Contracts | ||
working-directory: onchain-module | ||
run: | | ||
npm run migrate | ||
- name: Run Integration Test for onchain-module | ||
working-directory: onchain-module | ||
run: | | ||
make integration-test |
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 @@ | ||
a6924c9781c46df18c05545735f127eaf788a60816a7aeb9d5e928460b51cb2f |
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 @@ | ||
8884f3631f6435bce86b0da6868b10370441364ed225b3892e598cea96508323 |
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 @@ | ||
f66c1f19a52bf2955d00bf050793a80056ccfa6237b46f4d7d3a9e20af669c29 |
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 @@ | ||
d36b4f4de888a7b60681e405247131ba053faee3286cd5db8467535f58ef3202 |
Oops, something went wrong.