Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrwatson committed Oct 9, 2024
1 parent 6b6dea0 commit 126c291
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-api-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
working-directory: bin/si-api-test/tests
run: |
# Find .ts files, remove ./ prefix, and format as JSON array
files=$(find "." -mindepth 1 -maxdepth 1 -type f -name "*.ts" | sed -r "s/\.\/(.*)\.ts/\1/")
files=$(find "." -mindepth 1 -maxdepth 1 -type f -name "*.ts" | sed -r "s/\.\/(.*)\.ts/\1/" | sort)
# Get the number of tests
test_count=$(echo "$files" | wc -l)
Expand All @@ -48,8 +48,8 @@ jobs:
exit 1
fi
# Format files as JSON array with correct numbering
indexed_files=$(echo "$files" | nl -w1 -s': ' | awk '{print "{\"name\": \"" substr($0, index($0,$2)) "\", \"index\": " $1-1 "}"}' | jq -s .)
# Format files as JSON array with correct numbering and sorted order
indexed_files=$(echo "$files" | awk '{print "{\"name\": \"" $0 "\", \"index\": " NR-1 "}"}' | jq -s .)
# Ensure indexed_files are formatted correctly
test_output=$(echo "$indexed_files" | jq -c '.')
Expand Down
File renamed without changes.

0 comments on commit 126c291

Please sign in to comment.