Skip to content

Commit

Permalink
test ci/cd docker
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Oct 15, 2024
1 parent 62431ff commit 13d6b22
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/ci-rust-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,25 @@ jobs:
os: [ubuntu-22.04]
node-version: [20.x]
runs-on: ${{ matrix.os }}

services:
# Label used to access the service container
casper-nctl:
# Docker Hub image
image: gregoshop/casper-nctl:2.0
ports:
- 11101-11105:11101-11105
- 14101-14105:14101-14105
- 18101-18105:18101-18105
- 25101-25105:25101-25105
- 28101-28105:28101-28105
volumes:
- $PWD/assets/users:/app/casper-nctl/assets/net-1/users/

env:
RPC_ADDRESS: http://127.0.0.1:7777/rpc
EVENT_ADDRESS: http://127.0.0.1:9999/events/main
SPECULTATIVE_ADDRESS: http://127.0.0.1:7778
# WARNING: These accounts, and their private keys, are publicly known.
# Any funds sent to them on Mainnet or any other live network WILL BE LOST.
SECRET_KEY_USER_1: MC4CAQAwBQYDK2VwBCIEII8ULlk1CJ12ZQ+bScjBt/IxMAZNggClWqK56D1/7CbI
SECRET_KEY_USER_2: MC4CAQAwBQYDK2VwBCIEIJTD9IlUYzuMHbvAiFel/uqd6V7vUtUD19IEQlo6SAFC
RPC_ADDRESS: http://127.0.0.1:11100
EVENT_ADDRESS: http://127.0.0.1:18101/events
SPECULTATIVE_ADDRESS: http://127.0.0.1:25101

steps:
- uses: actions/checkout@v2
Expand All @@ -38,6 +49,13 @@ jobs:
components: rustfmt, clippy
target: wasm32-unknown-unknown

# WARNING: These accounts, and their private keys, are publicly known.
# Any funds sent to them on Mainnet or any other live network WILL BE LOST.
- name: Set SECRET_KEY_USER_1 and SECRET_KEY_USER_2 environment variables
run: |
echo "SECRET_KEY_USER_1=$(cat ./assets/users/user-1/secret_key.pem)" >> $GITHUB_ENV
echo "SECRET_KEY_USER_2=$(cat ./assets/users/user-2/secret_key.pem)" >> $GITHUB_ENV
- name: Fmt
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 13d6b22

Please sign in to comment.