infrastructure/.forgejo/workflows/pre-commit.yaml
Tom Hubrecht f5147dec8d
All checks were successful
Build all the nodes / geo02 (push) Successful in 1m48s
Build all the nodes / compute01 (push) Successful in 2m19s
Build all the nodes / rescue01 (push) Successful in 2m0s
Build all the nodes / storage01 (push) Successful in 1m52s
Build all the nodes / vault01 (push) Successful in 1m47s
Run pre-commit on all files / pre-commit (push) Successful in 35s
Build all the nodes / web02 (push) Successful in 1m30s
Build all the nodes / web01 (push) Successful in 2m18s
Build all the nodes / web03 (push) Successful in 1m30s
Check workflows / check_workflows (push) Successful in 27s
Build all the nodes / ap01 (push) Successful in 1m9s
Build all the nodes / bridge01 (push) Successful in 1m53s
Build all the nodes / geo01 (push) Successful in 1m53s
feat(workflows/pre-commit): Check multiple stages
2024-12-13 12:50:25 +01:00

15 lines
456 B
YAML

jobs:
pre-commit:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Check stage pre-commit
run: nix-shell -A pre-commit --run 'pre-commit run --all-files --hook-stage
pre-commit --show-diff-on-failure'
- name: Check stage pre-push
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