Skip to content

Commit

Permalink
Ensure that semver files are sorted as part of CI
Browse files Browse the repository at this point in the history
(backport <rust-lang#4018>)
(cherry picked from commit accd3b2)
  • Loading branch information
tgross35 committed Nov 7, 2024
1 parent 90ce736 commit 961cc3d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ci/style.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh

set -ex

Expand All @@ -18,3 +18,13 @@ else
exit 1
fi

for file in libc-test/semver/*.txt; do
case "$file" in
*TODO*) continue ;;
esac

if ! sort -C "$file"; then
echo "Unsorted semver file $file"
exit 1
fi
done

0 comments on commit 961cc3d

Please sign in to comment.