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
  • Loading branch information
tgross35 committed Nov 7, 2024
1 parent f38130b commit 19851a8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ci/style.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env sh
#!/bin/sh

set -ex

rustc ci/style.rs && ./style src

rustc ci/style.rs && ./style v
rustup toolchain install nightly -c rustfmt --allow-downgrade
rustup override set nightly
command -v rustfmt
Expand All @@ -18,3 +17,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 19851a8

Please sign in to comment.