Skip to content

Commit

Permalink
test: add testnet workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hemz10 committed Nov 21, 2023
1 parent c64ac9f commit 02233a0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/testnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: testnet
on:
workflow_dispatch:

jobs:
testnet:
name: test all parachains run on testnet
runs-on: "ubuntu-latest"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Installing Kurtosis CLI if not found in cache
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
- name: Starting the Kurtosis engine
run: kurtosis engine start

- name: Read CSV and loop over items
run: |
# Read CSV file and extract values
while IFS=',' read -r para_chain relay_chain; do
kurtosis clean -a
echo "Processing para chain: $para_chain, relay chain: $relay_chain"
# Call Python script with para_chain and relay_chain as arguments
python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "testnet"
kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot
done < ./testdata/chain_value.csv


0 comments on commit 02233a0

Please sign in to comment.