Skip to content

Commit

Permalink
add validatation checks for step files (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed May 15, 2024
1 parent fbd7dcb commit 835615d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/check-launch-templates.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#!/bin/bash
BASEDIR="./launch-templates"

for FILE in "$BASEDIR"/*
for FILE in ./launch-templates/*
do
if [ -f "$FILE" ]
then
echo "Validating $FILE"
npx nx-cloud validate --workflow-file=$FILE
fi
done

find ./workflow-steps -type f -name "*.yaml" | while read FILE
do
if [ -f "$FILE" ]
then
echo "Validating $FILE"
npx nx-cloud validate --workflow-file=$FILE --step-file
fi
done

0 comments on commit 835615d

Please sign in to comment.