blob: db94ee08ca0f6037e44a5e7299761c8069ba353a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
name: Format Check
on:
pull_request:
jobs:
check-format:
runs-on: tgrogers-raid
steps:
- uses: actions/checkout@v4
- name: Check code formatting
run: |
# Run the formatter to see if it would make any changes
/bin/bash ./format-code.sh
# Check if there are any uncommitted changes
if git diff --quiet; then
echo "✅ Code is properly formatted"
else
echo "❌ Code formatting check failed. The following files need formatting:"
git diff --name-only
echo ""
echo "Please run the formatter locally and commit the changes:"
echo "/bin/bash ./format-code.sh"
exit 1
fi
# skip the runs in PRs. Will run in the merge queue
CI-Success:
runs-on: ubuntu-latest
steps:
- run: echo "CI skipped. Will run in the merge queue"
|