Repository navigation
Expand file tree
/
Copy pathlefthook.yml
More file actions
53 lines (51 loc) · 1.42 KB
/
Copy pathlefthook.yml
File metadata and controls
53 lines (51 loc) · 1.42 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
---
glob_matcher: doublestar
pre-commit:
jobs:
- name: whitespace
run: task whitespace
- name: rust-format
glob:
- "{src,tests,migration}/**/*.rs"
- "client-tools/**/*.rs"
- "Cargo.{toml,lock}"
- "client-tools/**/Cargo.{toml,lock}"
- "build.rs"
run: task fmt client-tools:fmt:check
pre-push:
piped: true
jobs:
- name: protect-main
run: >-
fish --no-config -c 'if test (git branch --show-current) = main;
echo "Direct pushes to main are not allowed. Use a feature branch and PR." >&2;
exit 1; end'
- name: loco-quality
glob:
- "{src,tests,migration,assets,config}/**"
- "scripts/{migration,ci,frontend}/**"
- "Taskfiles/{ci,frontend}.yml"
- "Cargo.{toml,lock}"
- "build.rs"
- "package{,-lock}.json"
- "scripts/build-scanner.mjs"
- ".cargo/**"
- "rust-toolchain{,.toml}"
- ".github/workflows/ci.yml"
- "docs/api/openapi.v1.yaml"
- "Taskfile.yml"
- "{mise,deny}.toml"
- "lefthook.yml"
exclude:
- "**/*.md"
run: task ci
- name: client-tools-quality
glob:
- "client-tools/**"
- "{mise,deny}.toml"
- "lefthook.yml"
- ".github/workflows/{ci,client-tools-release}.yml"
- "docs/api/openapi.v1.yaml"
exclude:
- "**/*.md"
run: task client-tools:ci