frostfs-api/.forgejo/workflows/fmt.yaml
Aleksey Savchuk b2f5205976
[#66] .forgejo: Make 'fmt' job fail on changed files
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-09-13 15:09:12 +03:00

17 lines
335 B
YAML

name: Formatters
on: [pull_request]
jobs:
fmt:
name: Run fmt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
apt update
apt install -y clang-format
- name: Run fmt
run: |
make fmt
git diff --exit-code --quiet