-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
53 lines (46 loc) · 1021 Bytes
/
Taskfile.yml
File metadata and controls
53 lines (46 loc) · 1021 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
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
version: 3
vars:
RUST_VER: "1.88"
RUST_IMAGE: "rust:{{.RUST_VER}}-slim"
ENV_FILE_PATH: "{{.PWD}}/.env.template"
dotenv: [ '{{.ENV_FILE_PATH}}' ]
tasks:
run:
desc: "Full cycle"
deps:
- lint
- test
lint:
desc: "lint"
cmds:
- docker run --rm
-u $(id -u):$(id -g)
-v {{.PWD}}:/src
-w /src
{{.RUST_IMAGE}}
cargo clippy -- -D warnings
test:
desc: "test"
cmds:
- docker run --rm
--env-file {{.ENV_FILE_PATH}}
-u $(id -u):$(id -g)
-v {{.PWD}}:/src
-w /src
{{.RUST_IMAGE}}
cargo test
coverage:
desc: "coverage"
cmds:
- docker run --rm
--env-file {{.ENV_FILE_PATH}}
-u $(id -u):$(id -g)
-v {{.PWD}}:/src
-w /src
--security-opt seccomp=unconfined
xd009642/tarpaulin:develop-nightly
cargo +nightly tarpaulin --all-features --workspace --timeout 120
bench:
desc: "bench"
cmds:
- cargo bench