forked from TrueCloudLab/frostfs-api
18 lines
520 B
YAML
18 lines
520 B
YAML
name: Pre-commit hooks
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
precommit:
|
|
name: Pre-commit
|
|
# env:
|
|
# # Skip pre-commit hooks which are executed by other actions.
|
|
# SKIP: make-lint,go-staticcheck-repo-mod,go-unit-tests,gofumpt
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install deps
|
|
run: |
|
|
apt update
|
|
apt install -y pre-commit clang-format
|
|
- name: Run pre-commit
|
|
run: pre-commit run --all-files --hook-stage manual --color=always
|