Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit f425091

Browse files
committed
formatting: step 5 - add formatter check to the CI
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
1 parent e51e34f commit f425091

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/ci-fedora.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515

1616
- name: Install dependencies
1717
run: |
18-
dnf install -y autoconf automake gcc gettext-devel groff libtool make pkgconfig
18+
dnf install -y autoconf automake clang-tools-extra gcc gettext-devel git groff libtool make pkgconfig
1919
dnf install -y aspell-devel check-devel gpm-devel libX11-devel "pkgconfig(ext2fs)" "pkgconfig(glib-2.0)" "pkgconfig(gmodule-2.0)" "pkgconfig(libssh2)" "pkgconfig(slang)"
2020
2121
# For tests
2222
dnf install -y glibc-gconv-extra util-linux
2323
24+
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
25+
2426
- name: Lint documentation
2527
working-directory: maint
2628
run: ./doctest
@@ -41,6 +43,9 @@ jobs:
4143
--enable-werror \
4244
&& \
4345
\
46+
make indent && \
47+
git diff --exit-code && \
48+
\
4449
make -j$(nproc) && \
4550
make check && \
4651
make install \

.github/workflows/ci-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Install dependencies
2121
run: |
22-
brew install autoconf automake gettext check gnu-indent libtool pkg-config
22+
brew install autoconf automake gettext check libtool pkg-config
2323
brew install aspell e2fsprogs glib libssh2 openssl s-lang
2424
2525
# unzip is part of the base system

.github/workflows/ci-ubuntu.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- name: Install dependencies
1515
run: |
16-
sudo apt-get install -y autoconf autopoint check gettext indent libtool pkg-config
16+
sudo apt-get install -y autoconf autopoint check gettext libtool pkg-config
1717
sudo apt-get install -y e2fslibs-dev libaspell-dev libglib2.0-dev libgpm-dev libncurses5-dev libpcre2-dev libslang2-dev libssh2-1-dev libx11-dev unzip
1818
1919
- name: Bootstrap build system
@@ -39,10 +39,6 @@ jobs:
3939
--enable-vfs-undelfs \
4040
--enable-werror
4141
42-
make indent
43-
# TODO: exit 1
44-
git ls-files --modified
45-
4642
make -j$(nproc)
4743
make check
4844
make install

0 commit comments

Comments
 (0)