Meta: Run lint-prettier.sh on CI

This commit is contained in:
Linus Groh 2020-12-27 15:36:40 +01:00 committed by Andreas Kling
parent ee719c23d4
commit fec7501d1a
Notes: sideshowbarker 2024-07-19 00:33:02 +09:00
2 changed files with 6 additions and 3 deletions

View file

@ -27,13 +27,15 @@ jobs:
# These packages are already part of the ubuntu-20.04 image:
# clang-format-10 cmake gcc-10 g++-10 shellcheck libgmp-dev
# These aren't:
run: sudo apt-get install libstdc++-10-dev libmpfr-dev libmpc-dev ninja-build
run: sudo apt-get install libstdc++-10-dev libmpfr-dev libmpc-dev ninja-build npm
# If we ever do any qemu-emulation on Github Actions, we should re-enable this:
# e2fsprogs qemu-system-i386 qemu-utils
- name: Install prettier
run: sudo npm install -g prettier
- name: Use GCC 10 instead
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60 --slave /usr/bin/g++ g++ /usr/bin/g++-10
- name: Check versions
run: set +e; g++ --version; g++-10 --version; clang-format --version; clang-format-10 --version; python --version; python3 --version; ninja --version
run: set +e; g++ --version; g++-10 --version; clang-format --version; clang-format-10 --version; prettier --version; python --version; python3 --version; ninja --version
# === PREPARE FOR BUILDING ===

View file

@ -19,7 +19,8 @@ for cmd in \
Meta/check-style.sh \
Meta/lint-executable-resources.sh \
Meta/lint-ipc-ids.sh \
Meta/lint-shell-scripts.sh; do
Meta/lint-shell-scripts.sh \
Meta/lint-prettier.sh; do
echo "Running ${cmd}... "
if "${cmd}" "$@"; then
echo -e "[${GREEN}OK${NC}]: ${cmd}"