-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathtrunk.yaml
87 lines (78 loc) · 2.05 KB
/
trunk.yaml
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
81
82
83
84
85
86
87
version: 0.1
cli:
version: 1.4.1-beta.2
plugins:
sources:
- id: trunk
uri: https://github.com/trunk-io/plugins
ref: v0.0.8
runtimes:
enabled:
lint:
enabled:
packages:
- git-diff-check
ignore:
- linters: [ALL]
paths: ["**/test_data/**"]
actions:
definitions:
- id: toggle-local
display_name: Toggle Local
description: Toggle plugins repo between local and remote ref automatically
runtime: python
packages_file: tools/toggle-local/requirements.txt
run: tools/toggle-local/toggle flip ${workspace} ${@}
output_type: notification_v1
triggers:
- git_hooks: [pre-push]
run: tools/toggle-local/toggle flip ${workspace} --remote --pre-push
- files:
- plugin.yaml
- actions/**
- linters/**
run: tools/toggle-local/toggle notify ${workspace}
- id: repo-tests
display_name: Repo Tests
description: Run tests on plugin configuration and documentation
runtime: node
packages_file: package.json
run: npm test tests/
triggers:
- git_hooks: [pre-push]
- id: linter-test-helper
display_name: Test Generator
description: Generate boilerplate test code when new linters are defined
runtime: python
packages_file: tools/linter-test-helper/requirements.txt
run: tools/linter-test-helper/generate scan ${workspace}
triggers:
- files: [linters/**]
enabled:
- repo-tests
- linter-test-helper
- trunk-announce
- toggle-local
- trunk-cache-prune
- trunk-upgrade-available
- trunk-check-pre-push
- trunk-fmt-pre-commit
- git-lfs