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 sources:
18 - ./**/*
19 ci:
20 desc: Run CI locally
21 aliases: [ci:local]
22 deps: [audit, fmt, test, clippy, build]
23 nix:ci:
24 desc: Run CI locally under nix
25 aliases: [ci:local]
26 deps: [nix:check, nix:fmt, nix:build]
27 nix:check:
28 desc: Run Nix CI checks
29 sources:
30 - ./**/*
31 cmds:
32 - nix flake check
33 nix:build:
34 desc: Build with Nix
35 cmds:
36 - nix build
37 clippy:
38 desc: Run clippy
39 sources:
40 - ./**/*.rs
41 cmd: cargo clippy
42 nix:fmt:
43 desc: Run all formatters using treefmt
44 cmds:
45 - nix fmt
46 fmt:
47 desc: Run all formatters
48 sources:
49 - ./**/*
50 cmds:
51 - cargo fmt
52 - alejandra .
53 - prettier --write .
54 test:
55 desc: Run all tests
56 aliases: [t]
57 sources:
58 - ./**/*.rs
59 cmd: cargo nextest run --no-default-features
60 audit:
61 desc: Run cargo security audit
62 sources:
63 - Cargo.lock
64 - flake.lock
65 cmd: cargo audit
66 build:
67 desc: Build the project
68 aliases: [b]
69 sources:
70 - ./**/*.rs
71 - ./Cargo*
72 cmd: cargo build
73 commit:
74 desc: Commit changes using custom script
75 cmd: "{{.BIN}}/commit.sh"
76 test:full:
77 desc: Run comparisons against official tools
78 cmd: "{{.BIN}}/test.sh {{.CLI_ARGS}}"
79 coverage:
80 desc: Run coverage
81 aliases: [cov]
82 # Many tools don't like the file references from `nix build .#coverage`, so we need to run this outside nix
83 cmd: cargo tarpaulin --skip-clean --include-tests --output-dir coverage --out lcov --no-default-features