-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
27 lines (23 loc) · 861 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
27 lines (23 loc) · 861 Bytes
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
version: "3"
tasks:
fmt:
desc: "Format Rust code"
cmds: [cargo fmt]
fmt:check:
desc: "Check Rust code formatting"
cmds: [ cargo fmt --check]
lint:
desc: "Lint Rust code"
cmds: [cargo clippy --all-targets --all-features -- -D warnings]
test:
desc: "Test Rust code"
cmds:
# We want to be sure every workspace member is always tested.
# However, some members need special parameters
# (e.g. event-plugin tests must run in a single thread),
# so a single 'cargo test' can't cover everything correctly.
# Therefore, task:test runs every workspace member EXCEPT the
# excluded ones (e.g. event-plugin), and the excluded members
# are run separately with their own command.
- cargo test --workspace --exclude event-plugin
- cargo test -p event-plugin -- --test-threads=1