-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
77 lines (65 loc) · 1.53 KB
/
Taskfile.yml
File metadata and controls
77 lines (65 loc) · 1.53 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3"
tasks:
# Run all CI checks (same as what runs in CI)
ci:
desc: Run all CI checks (linters + tests)
cmds:
- task: fmt-check
- task: clippy
- task: test
# Check code formatting
fmt-check:
desc: Check code formatting
cmds:
- cargo fmt --all --check
# Format code
fmt:
desc: Format code
cmds:
- cargo fmt --all
# Run clippy linter
clippy:
desc: Run clippy linter with strict settings
cmds:
- cargo clippy --all-targets --all-features --workspace -- -D warnings
# Run all tests
test:
desc: Run all tests in workspace
cmds:
- cargo test --workspace
# Build the project
build:
desc: Build the project
cmds:
- cargo build --workspace
# Build release version
build-release:
desc: Build optimized release version
cmds:
- cargo build --workspace --release
# Clean build artifacts
clean:
desc: Clean build artifacts
cmds:
- cargo clean
# Run specific integration test
integration:
desc: Run integration tests
cmds:
- cargo test --test '*'
# Check for outdated dependencies
outdated:
desc: Check for outdated dependencies
cmds:
- cargo outdated
# Update dependencies
update:
desc: Update dependencies
cmds:
- cargo update
# Generate workflows and test with act
act:
desc: Generate CI workflows and test locally with act
cmds:
- cargo run -- generate
- act -W .github/workflows/ci.yml --container-architecture linux/amd64