nix-actions/.forgejo/workflows/pre-commit.yaml
Tom Hubrecht 829e83af9c
All checks were successful
Run pre-commit on all files / pre-push (push) Successful in 25s
feat: Add local workflow
2024-12-30 12:17:24 +01:00

12 lines
303 B
YAML

jobs:
pre-push:
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':
- pull_request
- push