Skip to content

Commit 9e956dd

Browse files
committed
fix(lefthook): glob syntax
1 parent 7d6ae51 commit 9e956dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lefthook.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pre-push:
8585
8686
e2e-links:
8787
tags: test,links
88-
glob: 'content/**/*.{md,html}'
88+
glob: 'content/*.{md,html}'
8989
run: |
9090
echo "Running link checker for: {push_files}"
9191
yarn test:links {push_files}
@@ -104,43 +104,43 @@ pre-push:
104104
run: yarn build:pytest:image
105105
# Test code blocks in markdown files
106106
cloud-pytest:
107-
glob: content/influxdb/cloud/**/*.md
107+
glob: content/influxdb/cloud/*.md
108108
tags: test,codeblocks,v2
109109
env:
110110
SERVICE: cloud-pytest
111111
run: yarn test:codeblocks:cloud '{push_files}'
112112

113113
cloud-dedicated-pytest:
114114
tags: test,codeblocks,v3
115-
glob: content/influxdb/cloud-dedicated/**/*.md
115+
glob: content/influxdb/cloud-dedicated/*.md
116116
run: |
117117
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
118118
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
119119
120120
cloud-serverless-pytest:
121121
tags: test,codeblocks,v3
122-
glob: content/influxdb/cloud-serverless/**/*.md
122+
glob: content/influxdb/cloud-serverless/*.md
123123
env:
124124
SERVICE: cloud-serverless-pytest
125125
run: yarn test:codeblocks:cloud-serverless '{push_files}'
126126

127127
clustered-pytest:
128128
tags: test,codeblocks,v3
129-
glob: content/influxdb/clustered/**/*.md
129+
glob: content/influxdb/clustered/*.md
130130
run: |
131131
yarn test:codeblocks:clustered '{push_files}' &&
132132
./test/scripts/monitor-tests.sh stop clustered-pytest
133133
134134
telegraf-pytest:
135135
tags: test,codeblocks
136-
glob: content/telegraf/**/*.md
136+
glob: content/telegraf/*.md
137137
env:
138138
SERVICE: telegraf-pytest
139139
run: yarn test:codeblocks:telegraf '{push_files}'
140140

141141
v2-pytest:
142142
tags: test,codeblocks,v2
143-
glob: content/influxdb/v2/**/*.md
143+
glob: content/influxdb/v2/*.md
144144
env:
145145
SERVICE: v2-pytest
146146
run: yarn test:codeblocks:v2 '{push_files}'

0 commit comments

Comments
 (0)