forked from airalab/robonomics
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Git actions script to test cli pair (airalab#347)
* add cli pair test action script * add missed file wtih peerId for cli pair action test
- Loading branch information
Showing
2 changed files
with
84 additions
and
0 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,62 @@ | ||
name: Testing pair cli | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
testpaircli: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt-get install cmake coreutils libclang-dev protobuf-compiler sysvinit-utils -y | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly-2022-08-05 | ||
target: ${{ matrix.target }} | ||
components: rustfmt, clippy | ||
default: true | ||
|
||
- name: Install WASM target (for runtime building) | ||
shell: bash | ||
run: rustup target add wasm32-unknown-unknown --toolchain nightly-2022-08-05 | ||
|
||
- name: Build and run reqres example node | ||
shell: bash | ||
run: | | ||
cd protocol/examples/reqres | ||
cargo build --release | ||
cd ../../.. | ||
base64 --decode protocol/examples/reqres/QmUnozNz2tmzDeckoShMHbvGp1yWi4BKBiudkELwoKCdcL > private.pk8 | ||
base64 --decode protocol/examples/reqres/Qme3o3Fr7yjECVS8yoKiM8c6F7ZotXAqTsntcGaeuCtWHz > target/release/private.pk8 | ||
- name: Build robonomics binary | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
|
||
- name: Run robonomics and send test pair listen then connect cli | ||
shell: bash | ||
run: | | ||
./target/release/robonomics pair listen --peer Qme3o3Fr7yjECVS8yoKiM8c6F7ZotXAqTsntcGaeuCtWHz & | ||
cd target/release | ||
./robonomics-request-response-example /ip4/127.0.0.1/tcp/61241 QmUnozNz2tmzDeckoShMHbvGp1yWi4BKBiudkELwoKCdcL & | ||
ps aux | grep "robonomics pair" | grep -v 'grep' | ||
ps aux | grep "robonomics-request" | grep -v 'grep' | ||
sudo kill -9 $(pidof robonomics-request-response-example) | ||
sudo kill -9 $(pidof robonomics) | ||
./robonomics-request-response-example /ip4/127.0.0.1/tcp/61241 & | ||
cd ../.. | ||
./target/release/robonomics pair connect --peer Qme3o3Fr7yjECVS8yoKiM8c6F7ZotXAqTsntcGaeuCtWHz & | ||
ps aux | grep "robonomics pair" | grep -v 'grep' | ||
ps aux | grep "robonomics-request" | grep -v 'grep' | ||
sudo kill -9 $(pidof robonomics) | ||
sudo kill -9 $(pidof robonomics-request-response-example) |
22 changes: 22 additions & 0 deletions
22
protocol/examples/reqres/Qme3o3Fr7yjECVS8yoKiM8c6F7ZotXAqTsntcGaeuCtWHz
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,22 @@ | ||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC6Ol7qz8L2HPq6B2c6RySlw9NF | ||
A6G9ZKpwCcDHXgwX6h0pTDAYt1cnO5J37pnujMurnTk7xV8vc0L3EYw9+rdDcn+9VxhZF19QubTl | ||
8JHVt+a/qqQmMamdOwwOGu+Sznc25Hzlkn/JJMNKe9JHuaBT9J1gkGoWec/KaDS+JUj3YlJ6/7K5 | ||
Uug2T4yhKOcqKiN/GUDBjkPVqG7S72VuOQDAy/ujghv/ccfXUV5OJgQpJ6HsHqevZhDOchshykN9 | ||
FlVa0j0nqQR0xEE5bPchNxq3EaZarScdigtK6qivlc8JXVO9akhyq+gPG94kyWYy4qk1DfvXnIqS | ||
fxI2fp7HMupVAgMBAAECgg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