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.
31 lines
512 B
YAML
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
|