-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d19a960
commit e03cd30
Showing
6 changed files
with
57 additions
and
13 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,10 @@ | ||
version: "3.9" | ||
|
||
services: | ||
chain-simulator: | ||
image: multiversx/chainsimulator:v1.7.13-patch2 | ||
ports: | ||
- 8085:8085 | ||
volumes: | ||
- "../scripts:/docker/scripts" | ||
entrypoint: "./chainsimulator -log-level *:INFO" |
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,27 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ main, feat/* ] | ||
pull_request: | ||
branches: [ main, feat/* ] | ||
|
||
jobs: | ||
test: | ||
name: Slow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.7 | ||
id: go | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Slow tests | ||
run: make slow-tests |
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,4 @@ | ||
slow-tests: clean-test | ||
@docker compose -f docker/docker-compose.yml build | ||
@docker compose -f docker/docker-compose.yml up & cargo test --features chain_simulator | ||
@docker compose -f docker/docker-compose.yml down -v |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# chain_type = 'simulator' | ||
# gateway_uri = 'http://localhost:8085' | ||
chain_type = 'simulator' | ||
gateway_uri = 'http://localhost:8085' | ||
|
||
chain_type = 'real' | ||
gateway_uri = 'https://devnet-gateway.multiversx.com' | ||
# chain_type = 'real' | ||
# gateway_uri = 'https://devnet-gateway.multiversx.com' |
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