Skip to content

fix: remove redundent ci definition #16

fix: remove redundent ci definition

fix: remove redundent ci definition #16

Workflow file for this run

name: JsonRPC Test
env:
test_node_addr: "https://betanet-rpc1.artela.network"
key_privateKey: "0x4d372700bec7a86e3b5388685f92806234931bc018c02fe4b52d5c56df317f8e"
on:
push:
branches: [ ci_test ]
pull_request:
branches: [ ci_test ]
jobs:
test-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Preparation
run: |
mkdir -p ci_scripts
cat > ci_scripts/init_env.sh <<EOF
source ~/.nvm/nvm.sh
set -ex
cd /test-scripts/pre_public_testnet/json-rpc
sed -i "s|\"node\": \".*\"|\"node\": \"$test_node_addr\"|g" project.config.json && cat project.config.json
echo $key_privateKey > privateKey.txt
node $1
EOF
cat > ci_scripts/run.sh << EOF
docker run --name testenv -v $(pwd)/ci_scripts:/ci_scripts -i simonalphafang/artela-jsonrpc-testenv:0.0.1 /bin/bash -c /ci_scripts/init_env.sh $1
EOF
chmod +x -R ci_scripts/
- name: ci_call.js
run: bash -c ci_scripts/run.sh ci_call.js