Skip to content

Commit 8cf79c8

Browse files
committed
formatting: step 5 - add formatter check to the CI
Signed-off-by: Yury V. Zaytsev <[email protected]>
1 parent c3ff176 commit 8cf79c8

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/ci-fedora.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ jobs:
1111
timeout-minutes: 5
1212

1313
steps:
14+
- name: Install git inside container
15+
run: dnf install -y git
16+
1417
- uses: actions/checkout@v4
1518

1619
- name: Install dependencies
1720
run: |
18-
dnf install -y autoconf automake gcc gettext-devel groff libtool make pkgconfig
21+
dnf install -y autoconf automake clang-tools-extra gcc gettext-devel groff libtool make pkgconfig
1922
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)"
2023
2124
# For tests
@@ -41,6 +44,11 @@ jobs:
4144
--enable-werror \
4245
&& \
4346
\
47+
echo "Checking formatting..." && \
48+
clang-format --version && \
49+
make indent && \
50+
git diff --exit-code && \
51+
\
4452
make -j$(nproc) && \
4553
make check && \
4654
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)