diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index 42fe353..fdf5301 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -20,6 +20,27 @@ jobs: - name: Run linters 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: name: Tests runs-on: ubuntu-latest