chore(ci): Lefthook: pass push files to test commands

pull/6100/head
Jason Stirnaman 2025-05-28 18:11:53 -05:00
parent e2ced95f94
commit badc27190e
1 changed files with 8 additions and 8 deletions

View File

@ -79,8 +79,8 @@ pre-push:
tags: test,links
glob: 'content/**/*.{md,html}'
run: |
echo "Running link checker for: {staged_files}"
yarn test:links {staged_files}
echo "Running link checker for: {push_files}"
yarn test:links {push_files}
exit $?
# Manage Docker containers
@ -100,13 +100,13 @@ pre-push:
tags: test,codeblocks,v2
env:
SERVICE: cloud-pytest
run: yarn test:codeblocks:cloud '{staged_files}'
run: yarn test:codeblocks:cloud '{push_files}'
cloud-dedicated-pytest:
tags: test,codeblocks,v3
glob: content/influxdb/cloud-dedicated/**/*.md
run: |
yarn test:codeblocks:cloud-dedicated '{staged_files}' &&
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
cloud-serverless-pytest:
@ -114,13 +114,13 @@ pre-push:
glob: content/influxdb/cloud-serverless/**/*.md
env:
SERVICE: cloud-serverless-pytest
run: yarn test:codeblocks:cloud-serverless '{staged_files}'
run: yarn test:codeblocks:cloud-serverless '{push_files}'
clustered-pytest:
tags: test,codeblocks,v3
glob: content/influxdb/clustered/**/*.md
run: |
yarn test:codeblocks:clustered '{staged_files}' &&
yarn test:codeblocks:clustered '{push_files}' &&
./test/scripts/monitor-tests.sh stop clustered-pytest
telegraf-pytest:
@ -128,11 +128,11 @@ pre-push:
glob: content/telegraf/**/*.md
env:
SERVICE: telegraf-pytest
run: yarn test:codeblocks:telegraf '{staged_files}'
run: yarn test:codeblocks:telegraf '{push_files}'
v2-pytest:
tags: test,codeblocks,v2
glob: content/influxdb/v2/**/*.md
env:
SERVICE: v2-pytest
run: yarn test:codeblocks:v2 '{staged_files}'
run: yarn test:codeblocks:v2 '{push_files}'