-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathlefthook.yml
More file actions
36 lines (36 loc) · 1.35 KB
/
Copy pathlefthook.yml
File metadata and controls
36 lines (36 loc) · 1.35 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
pre-commit:
parallel: true
jobs:
- name: lint-extension
root: "packages/extension/"
glob: "*.{js,ts,jsx,tsx,json}"
run: npx biome check --no-errors-on-unmatched {staged_files}
- name: lint-phpunit
root: "packages/phpunit/"
glob: "*.{js,ts,jsx,tsx,json}"
run: npx biome check --no-errors-on-unmatched {staged_files}
- name: typecheck-phpunit
root: "packages/phpunit/"
glob: "*.{ts,tsx}"
run: npx tsc --noEmit
# Sequential: extension's tsconfig resolves @vscode-phpunit/phpunit via the
# built dist output (not source), so its typecheck needs a fresh build first.
- group:
parallel: false
jobs:
- name: build-phpunit-types
root: "packages/phpunit/"
glob: "*.{ts,tsx}"
run: npx tsup
- name: typecheck-extension
root: "packages/extension/"
glob: "*.{ts,tsx}"
run: npx tsc -p tsconfig.test.json --noEmit
- name: pint-phpunit-stub
root: "packages/phpunit/tests/fixtures/phpunit-stub/"
glob: "*.php"
run: bash -c 'command -v pint >/dev/null 2>&1 && pint --test {staged_files} || true'
- name: pint-pest-stub
root: "packages/phpunit/tests/fixtures/pest-stub/"
glob: "*.php"
run: bash -c 'command -v pint >/dev/null 2>&1 && pint --test {staged_files} || true'