Skip to content

Commit

Permalink
testing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
marwaneltoukhy authored Aug 4, 2024
1 parent c7988b9 commit 709221b
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/test_ips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,25 @@ jobs:

- name: Install dependencies
run: |
pip install jq
sudo apt-get update
sudo apt-get install -y jq
pip install ipmgr
- name: Read and process JSON
id: process_json
run: |
# Read the names from the JSON file
IP_NAMES=$(jq -r 'keys | .[]' verified_IPs.json)
# Run commands for each IP name
for NAME in $IP_NAMES; do
echo "Processing $NAME"
# Extract IP names and their latest version
jq -r 'to_entries[] | "\(.key) \(.value.release | keys_unsorted | .[0])"' verified_IPs.json > ip_versions.txt
- name: Install and verify IPs
run: |
# Loop through each IP and version
while read -r NAME VERSION; do
echo "Processing $NAME with version $VERSION"
ipm install "$NAME"
cd ip/"$NAME"
ipm check-ip
cd -
done
cd "$NAME"
ipm check-ip --ip-root ~/.ipm/"$NAME"/"$VERSION" --ip-name "$NAME"
cd ..
done < ip_versions.txt
shell: bash

0 comments on commit 709221b

Please sign in to comment.