Skip to content

Commit

Permalink
test: create a list to add all failed chains and print it
Browse files Browse the repository at this point in the history
  • Loading branch information
hemz10 committed Nov 28, 2023
1 parent 5487f33 commit 1d9aea8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
- name: Starting the Kurtosis engine
run: kurtosis engine start

- name: Set up variables
run: |
failed_chains=()
- name: Read CSV and loop over items
run: |
# Read CSV file and extract values
Expand All @@ -33,10 +37,19 @@ jobs:
# Check if Kurtosis command failed
if [ $? -ne 0 ]; then
echo "Chain $para_chain failed."
failed_chains+=("$para_chain")
else
echo "Chain $para_chain succeeded."
fi
done < ./testdata/chain_value.csv
- name: Print failed chains
run: |
if [ ${#failed_chains[@]} -gt 0 ]; then
echo "Failed chains: ${failed_chains[@]}"
else
echo "All chains succeeded."
fi

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
- name: Starting the Kurtosis engine
run: kurtosis engine start

- name: Set up variables
run: |
failed_chains=()
- name: Read CSV and loop over items
run: |
# Read CSV file and extract values
Expand All @@ -33,10 +37,19 @@ jobs:
# Check if Kurtosis command failed
if [ $? -ne 0 ]; then
echo "Chain $para_chain failed."
failed_chains+=("$para_chain")
else
echo "Chain $para_chain succeeded."
fi
done < ./testdata/chain_value.csv
- name: Print failed chains
run: |
if [ ${#failed_chains[@]} -gt 0 ]; then
echo "Failed chains: ${failed_chains[@]}"
else
echo "All chains succeeded."
fi

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
- name: Starting the Kurtosis engine
run: kurtosis engine start

- name: Set up variables
run: |
failed_chains=()
- name: Read CSV and loop over items
run: |
# Read CSV file and extract values
Expand All @@ -33,10 +37,20 @@ jobs:
# Check if Kurtosis command failed
if [ $? -ne 0 ]; then
echo "Chain $para_chain failed."
failed_chains+=("$para_chain")
else
echo "Chain $para_chain succeeded."
fi
done < ./testdata/chain_value.csv
- name: Print failed chains
run: |
if [ ${#failed_chains[@]} -gt 0 ]; then
echo "Failed chains: ${failed_chains[@]}"
else
echo "All chains succeeded."
fi

Expand Down

0 comments on commit 1d9aea8

Please sign in to comment.