From 02233a049615698f1d39c96cd363b862793dd8f1 Mon Sep 17 00:00:00 2001 From: hemz10 Date: Tue, 21 Nov 2023 17:18:51 +0530 Subject: [PATCH] test: add testnet workflow --- .github/workflows/testnet.yaml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/testnet.yaml diff --git a/.github/workflows/testnet.yaml b/.github/workflows/testnet.yaml new file mode 100644 index 0000000..4699262 --- /dev/null +++ b/.github/workflows/testnet.yaml @@ -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 + + + + \ No newline at end of file