-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskfile.yaml
52 lines (41 loc) · 991 Bytes
/
taskfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
tasks:
# Flake
flake-check:
desc: check whether the flake evaluates and run its tests
cmds:
- nix flake check
flake-update-all:
desc: update all flake inputs
cmds:
- printf "\n> Updating all flake inputs\n\n"
- nix flake update
silent: true
flake-update-one:
desc: update one flake imput like nixpkgs or flake-utils
cmds:
- printf "\n> Updating flake input {{.CLI_ARGS}}\n\n"
- nix flake lock --update-input {{.CLI_ARGS}}
silent: true
# Git
clean-git:
desc: "clean git reflog"
cmds:
- git reflog expire --verbose --expire-unreachable=now --all
- git gc --prune=now
# Pre-commit
pre-commit:
desc: inizialize pre-commit
cmds:
- pre-commit install
sources:
- .git/hooks/pre-commit
- .pre-commit-config.yaml
generates:
- .git/hooks/pre-commit
method: checksum
# Test
tests:
desc: "all test"
cmds:
- echo 'test'