nix-config/templates/c++-cmake/.woodpecker/check.yml
Bruno BELANYI 694c0224d3 templates: run 'pre-commit' outside of 'checks'
This allows adding pre-commit checks that can't be run in the sandbox,
such as `clippy` in Rust etc...

Not strictly necessary for the few checks that are enabled in the
current templates, but I like to have very similar setups across the
board.
2023-05-10 13:19:13 +00:00

31 lines
512 B
YAML

labels:
type: exec
pipeline:
- name: pre-commit checks
image: bash
commands:
- nix shell . -c pre-commit run --all
- name: nix flake check
image: bash
commands:
- nix flake check
- name: notifiy
image: bash
secrets:
- source: matrix_homeserver
target: address
- source: matrix_roomid
target: room
- source: matrix_username
target: user
- source: matrix_password
target: pass
commands:
- nix run '.#matrix-notifier'
when:
status:
- failure
- success