Skip to content

Commit b58a49c

Browse files
committed
Meta: Preparation for source reformatting
* Add data-noreformat attributes * Fix double spaces and incorrect wrapping around tags * Add a Check Formatting workflow
1 parent ad28192 commit b58a49c

File tree

2 files changed

+122
-179
lines changed

2 files changed

+122
-179
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ jobs:
1515
with:
1616
fetch-depth: 2
1717
path: 'source'
18+
- name: Check Formatting
19+
run: |
20+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
21+
source $HOME/.cargo/env
22+
cargo install reformahtml
23+
mkdir tmp
24+
reformahtml source/source tmp/reformatted-source
25+
diff source/source tmp/reformatted-source > tmp/diff_output.txt || true
26+
if [ -s tmp/diff_output.txt ]; then
27+
cat tmp/diff_output.txt
28+
exit 1
29+
fi
1830
- name: Build
1931
run: |
2032
mkdir output

0 commit comments

Comments
 (0)