-
Notifications
You must be signed in to change notification settings - Fork 69
38 lines (31 loc) · 922 Bytes
/
format.yml
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
33
34
35
36
37
38
name: format
on:
pull_request:
branches: [ master ]
jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Mill Installation
run: |
sudo curl -L https://github.com/com-lihaoyi/mill/releases/download/0.11.1/0.11.1 > /usr/local/bin/mill
chmod +x /usr/local/bin/mill
- name: Clang Format Installation
run: |
pip install clang-format==18.1.4
- name: Scala Formatter
run: |
make scala-format
- name: Clang Formatter
run: |
make clang-format
- name: Format Check
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Please run 'make format' manually"
exit 1
fi