frostfs-api/.forgejo/workflows/pre-commit.yaml
Aleksey Savchuk 6bc2038f03
All checks were successful
DCO action / DCO (pull_request) Successful in 40s
Pre-commit hooks / Pre-commit (pull_request) Successful in 45s
Formatters / Run fmt (pull_request) Successful in 51s
[#58] .forgejo: Add forgejo actions
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-09-03 15:11:29 +03:00

18 lines
455 B
YAML

name: Pre-commit hooks
on: [pull_request]
jobs:
pre-commit:
name: Pre-commit
env:
# Skip pre-commit hooks which are executed by other actions.
SKIP: make-fmt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
apt update
apt install -y pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --hook-stage manual --color=always