blob: a99846ba89632ec153ec20bf55fa704f82c02b68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
pre-commit:
parallel: true
commands:
hadolint:
glob: "**/*Dockerfile"
run: hadolint {staged_files}
woodpecker:
glob: ".woodpecker/*.{yml,yaml}"
run: woodpecker lint {staged_files}
yamllint:
glob: "**/*.{yml,yaml}"
run: yamllint {staged_files}
fmt:
run: cargo fmt --all -- --check
stage_fixed: true
clippy:
run: cargo clippy --all-targets --all-features -- -D warnings
test:
run: cargo test --all -- --test-threads=1
|