[#164] .forgejo: Add clang-format support

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2024-11-15 19:03:16 +03:00
parent fe90707913
commit fad5d9b16c
Signed by: achuprov
GPG key ID: 2D916FFD803B0EDD

View file

@ -20,6 +20,27 @@ jobs:
- name: Run linters - name: Run linters
run: make lint run: make lint
check-format:
name: Check format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install deps
run: |
apt update
apt install -y clang-format
- name: Run clang-format
run: clang-format -i **/*.js
- name: Print diff
run: git diff HEAD
- name: Check that nothing has changed
run: git diff-index --exit-code HEAD
tests: tests:
name: Tests name: Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest