Skip to content

Commit cf092cf

Browse files
committed
fix(test): revert to staged_files
1 parent 7674012 commit cf092cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lefthook.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,39 +137,39 @@ pre-push:
137137
tags: test,codeblocks,v2
138138
env:
139139
SERVICE: cloud-pytest
140-
run: yarn test:codeblocks:cloud '{push_files}'
140+
run: yarn test:codeblocks:cloud '{staged_files}'
141141

142142
cloud-dedicated-pytest:
143143
tags: test,codeblocks,v3
144144
glob: content/influxdb3/cloud-dedicated/*.md
145145
run: |
146-
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
146+
yarn test:codeblocks:cloud-dedicated '{staged_files}' &&
147147
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
148148
149149
cloud-serverless-pytest:
150150
tags: test,codeblocks,v3
151151
glob: content/influxdb3/cloud-serverless/*.md
152152
env:
153153
SERVICE: cloud-serverless-pytest
154-
run: yarn test:codeblocks:cloud-serverless '{push_files}'
154+
run: yarn test:codeblocks:cloud-serverless '{staged_files}'
155155

156156
clustered-pytest:
157157
tags: test,codeblocks,v3
158158
glob: content/influxdb3/clustered/*.md
159159
run: |
160-
yarn test:codeblocks:clustered '{push_files}' &&
160+
yarn test:codeblocks:clustered '{staged_files}' &&
161161
./test/scripts/monitor-tests.sh stop clustered-pytest
162162
163163
telegraf-pytest:
164164
tags: test,codeblocks
165165
glob: content/telegraf/*.md
166166
env:
167167
SERVICE: telegraf-pytest
168-
run: yarn test:codeblocks:telegraf '{push_files}'
168+
run: yarn test:codeblocks:telegraf '{staged_files}'
169169

170170
v2-pytest:
171171
tags: test,codeblocks,v2
172172
glob: content/influxdb/v2/*.md
173173
env:
174174
SERVICE: v2-pytest
175-
run: yarn test:codeblocks:v2 '{push_files}'
175+
run: yarn test:codeblocks:v2 '{staged_files}'

0 commit comments

Comments
 (0)