this repo has no description
1# https://taskfile.dev
2
3# These are the helper commands used for managing/testing the repo.
4
5# TODO: These are an odd mix of nix and non-nix commands, which should probably be separated somehow.
6
7version: "3"
8
9vars:
10 BIN: "{{.ROOT_DIR}}/bin"
11
12tasks:
13 default:
14 cmd: task --list
15 silent: true
16 ci:full:
17 desc: Run CI locally in containers
18 cmd: act
19 sources:
20 - ./**/*
21 ci:
22 desc: Run CI locally
23 aliases: [ci:local]
24 deps: [audit, fmt, test, nix:check, nix:build, clippy, pre-commit, build]
25 nix:check:
26 desc: Run Nix CI checks
27 sources:
28 - ./**/*
29 cmds:
30 - nix flake check
31 nix:build:
32 desc: Run Nix Build
33 cmds:
34 - nix build
35 clippy:
36 desc: Run clippy
37 sources:
38 - ./**/*.rs
39 cmd: cargo clippy
40 pre-commit:
41 desc: Run pre-commit
42 cmd: nix flake check
43 fmt:
44 desc: Run all formatters
45 cmds:
46 - nix fmt
47 test:
48 desc: Run all tests
49 aliases: [t]
50 sources:
51 - ./**/*.rs
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 sources:
63 - ./**/*.rs
64 - ./Cargo*
65 cmd: cargo build
66 commit:
67 desc: Commit changes using custom script
68 cmd: "{{.BIN}}/commit.sh"
69 test:full:
70 desc: Run comparisons against official tools
71 cmd: "{{.BIN}}/test.sh {{.CLI_ARGS}}"
72 coverage:
73 desc: Run coverage
74 aliases: [cov]
75 # Many tools don't like the file references from `nix build .#coverage`, so we need to run this outside nix
76 cmd: cargo tarpaulin --skip-clean --include-tests --output-dir coverage --out lcov --no-default-features