forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
66 lines (66 loc) · 2.03 KB
/
Copy pathlefthook.yml
File metadata and controls
66 lines (66 loc) · 2.03 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
pre-commit:
commands:
biome_check:
glob: 'packages/**/*.{js,ts,json}'
run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true
skip:
- merge
- rebase
prettier_check:
glob: 'packages/**/*.{vue,yml,md,css,scss}'
run: pnpm prettier --write --ignore-unknown --no-error-on-unmatched-pattern {staged_files}
stage_fixed: true
skip:
- merge
- rebase
styles_check:
glob: 'packages/**/*.{scss,sass,vue}'
run: pnpm lint:styles:fix
skip:
- merge
- rebase
actionlint_check:
glob: '.github/workflows/*.{yml,yaml}'
run: actionlint {staged_files}
skip:
- merge
- rebase
workspace_deps_check:
glob: '**/package.json'
run: node scripts/check-workspace-deps.mjs {staged_files}
skip:
- merge
- rebase
skill_links_check:
glob: '.agents/skills/**'
run: node scripts/sync-agent-skill-links.mjs --check
skip:
- merge
- rebase
skill_links_check_plugin:
glob: '.claude/plugins/n8n/skills/**'
run: node scripts/sync-agent-skill-links.mjs --check
skip:
- merge
- rebase
migration_timestamp_check:
glob: 'packages/@n8n/db/src/migrations/{common,postgresdb,sqlite}/*.ts'
run: |
files=$(echo "{staged_files}" | tr ' ' ',')
CODE_HEALTH_CHANGED_FILES="$files" pnpm --filter=@n8n/code-health check --rule=migration-timestamp
skip:
- merge
- rebase
db_schema_check:
glob: 'packages/@n8n/db/src/migrations/{common,postgresdb,sqlite}/*.ts'
run: pnpm run db:schema:check:sqlite
skip:
- merge
- rebase
playwright_janitor:
glob: 'packages/testing/playwright/**/*.ts'
run: |
files=$(echo {staged_files} | tr ' ' ',')
pnpm --filter=n8n-playwright janitor --files="$files"
skip: true # Disabled for now - enable when baseline is committed