-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
80 lines (79 loc) · 2.47 KB
/
Copy pathlefthook.yml
File metadata and controls
80 lines (79 loc) · 2.47 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
78
79
80
pre-commit:
parallel: true
commands:
fmt:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo fmt --check
clippy:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
CARGO_INCREMENTAL=0 cargo clippy --workspace --all-targets --quiet -- -D warnings
taplo:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
RUST_LOG=error taplo fmt --check Cargo.toml bin/*/Cargo.toml crates/*/Cargo.toml .cargo/*.toml .config/*.toml rust-toolchain.toml clippy.toml taplo.toml deny.toml .rustfmt.toml
event-coverage:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-event-coverage
profiles:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-profiles
newtype-ids:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-newtype-ids
secrets:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-secrets
test-hooks:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-test-hooks
orphan-traits:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-orphan-traits
thin-binary:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-thin-binary
tracing-init:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-tracing-init
bdd-wire-coverage:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-bdd-wire-coverage
tsconfig:
glob: "apps/web/tsconfig.json"
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just check-tsconfig
# Web format/lint/typecheck collapsed into one serial chain because
# each precondition-runs `just web-i18n-compile` (the paraglide
# compile that emits typed message functions), and three parallel
# paraglide compiles racing on the same output directory hit
# `ENOTEMPTY: rmdir '...paraglide'` non-deterministically. Running
# them in sequence behind a single hook compiles paraglide once
# and then performs all three checks in order. The Rust hooks above
# remain parallel.
web:
glob: "apps/web/**/*.{ts,tsx,js,jsx,json,md,css,yaml,yml}"
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just web-i18n-compile
just web-format-check
just web-lint
just web-typecheck
pre-push:
parallel: false
commands:
tests:
run: |
export PATH="$HOME/.cargo/bin:$PATH"
just tests