summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGergely Kis <gergely.kis@migeran.com>2022-09-05 11:55:51 +0200
committerGergely Kis <gergely.kis@migeran.com>2022-09-05 13:18:27 +0200
commit20bf72751c865e2597ca89e6acb5a8066d2e81f4 (patch)
tree633c178f97de9a280af9806b00daa6a333c93ab0 /.github
parent6c818da55ef1f45eaed06e1413220af1d23a9c41 (diff)
Fix UTF-8 validation in static checks
Use isutf8 instead of recode to detect invalid UTF-8 sequences. Also add the necessary dependencies to run the static checks locally using act (https://github.com/nektos/act) with the Medium size image.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/static_checks.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml
index 3e84702d7f..5b4de06e9e 100644
--- a/.github/workflows/static_checks.yml
+++ b/.github/workflows/static_checks.yml
@@ -24,8 +24,8 @@ jobs:
- name: Install dependencies
run: |
- sudo apt-get install -qq dos2unix recode clang-format-13 libxml2-utils
- sudo update-alternatives --remove-all clang-format
+ sudo apt-get install -qq dos2unix recode clang-format-13 libxml2-utils python3-pip moreutils
+ sudo update-alternatives --remove-all clang-format || true
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-13 100
sudo pip3 install black==22.3.0 pygments pytest