this repo has no description
1# https://taskfile.dev
2
3# These are the helper commands used for managing/testing the repo.
4
5version: "3"
6
7vars:
8 BIN: "{{.ROOT_DIR}}/bin"
9
10tasks:
11 default:
12 cmd: task --list
13 silent: true
14 ci:full:
15 desc: Run CI locally in containers
16 cmd: act
17 ci:
18 desc: Run CI locally
19 aliases: [ci:local]
20 deps: [audit, fmt, test, clippy, build]
21 nix:ci:
22 desc: Run CI locally under nix
23 aliases: [ci:local]
24 deps: [nix:check, nix:fmt, nix:build]
25 nix:check:
26 desc: Run Nix CI checks
27 cmds:
28 - nix flake check
29 nix:build:
30 desc: Build with Nix
31 cmds:
32 - nix build
33 clippy:
34 desc: Run clippy
35 cmd: cargo clippy
36 clippy:fix:
37 desc: Run clippy and fix errors
38 cmd: cargo clippy --fix --allow-dirty --allow-staged
39 nix:fmt:
40 desc: Run all formatters using treefmt
41 cmds:
42 - nix fmt
43 fmt:
44 desc: Run all formatters
45 cmds:
46 - cargo fmt
47 - alejandra .
48 - prettier --write .
49 test:
50 desc: Run all tests
51 aliases: [t]
52 cmd: cargo nextest run --no-default-features
53 audit:
54 desc: Run cargo security audit
55 sources:
56 - Cargo.lock
57 - flake.lock
58 cmd: cargo audit
59 build:
60 desc: Build the project
61 aliases: [b]
62 cmd: cargo build
63 commit:
64 desc: Commit changes using custom script
65 cmd: "{{.BIN}}/commit.sh"
66 test:full:
67 desc: Run comparisons against official tools
68 cmd: "{{.BIN}}/test.sh {{.CLI_ARGS}}"
69 coverage:
70 desc: Run coverage
71 aliases: [cov]
72 # Many tools don't like the file references from `nix build .#coverage`, so we need to run this outside nix
73 cmd: cargo tarpaulin --skip-clean --include-tests --output-dir coverage --out lcov --no-default-features
74 nix:coverage:
75 desc: Create coverage using nix
76 cmds:
77 - nix build .#coverage --out-link coverage