infrastructure/.forgejo/workflows/pre-commit.yaml
2024-11-19 00:53:33 +01:00

12 lines
298 B
YAML

jobs:
check:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Run pre-commit on all files
run: nix-shell -A pre-commit --run 'pre-commit run --all-files --hook-stage
pre-push --show-diff-on-failure'
name: Run pre-commit on all files
on:
- push
- pull_request