mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[skip tests]
This commit is contained in:
1
.github/workflows/comment-lint.yml
vendored
1
.github/workflows/comment-lint.yml
vendored
@@ -23,6 +23,7 @@ jobs:
|
||||
id: env
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get remove -qq clang-18
|
||||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc > /dev/null
|
||||
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-${{ env.LLVM_VERSION_MAJOR }} main" | sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null
|
||||
sudo apt-get update -qq
|
||||
|
||||
@@ -88,13 +88,13 @@ if [ "$MODE" = "check" ]; then
|
||||
fi
|
||||
dir=$(dirname "$dir")
|
||||
done
|
||||
|
||||
|
||||
if ! $CLANG_FORMAT --dry-run --Werror "$file" 2>/dev/null; then
|
||||
echo "Format check failed: $file"
|
||||
FAILED=1
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
if [ $FAILED -eq 1 ]; then
|
||||
echo "Some files need formatting. Run 'bun run clang-format' to fix."
|
||||
exit 1
|
||||
@@ -123,4 +123,4 @@ else
|
||||
echo " fix - Same as format" >&2
|
||||
echo " diff - Show formatting differences" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user