Skip to content

Commit e6fd74c

Browse files
committed
style: format with carp-fmt 0.1.0; add to CI gate
1 parent f14b10d commit e6fd74c

4 files changed

Lines changed: 806 additions & 608 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,26 @@ jobs:
3131
(cd /tmp/angler && carp -b main.carp)
3232
sudo install -m 755 /tmp/angler/out/angler /usr/local/bin/
3333
34+
- name: Install carp-fmt
35+
run: |
36+
set -euo pipefail
37+
git clone --depth 1 https://github.com/carpentry-org/carp-fmt /tmp/carp-fmt
38+
(cd /tmp/carp-fmt && carp -b main.carp)
39+
sudo install -m 755 /tmp/carp-fmt/out/carp-fmt /usr/local/bin/
40+
3441
- name: Lint
3542
run: |
3643
angler $(find . -name '*.carp' \
3744
-not -path './out/*' \
3845
-not -path './docs/*' \
3946
-not -path './.carp-src/*')
4047
48+
- name: Format check
49+
run: |
50+
carp-fmt --check $(find . -name '*.carp' \
51+
-not -path './out/*' \
52+
-not -path './docs/*' \
53+
-not -path './.carp-src/*')
54+
4155
- name: Generate docs
4256
run: carp -x gendocs.carp

0 commit comments

Comments
 (0)