chore(ci): Lefthook: pass push files to test commands
parent
e2ced95f94
commit
badc27190e
16
lefthook.yml
16
lefthook.yml
|
@ -79,8 +79,8 @@ pre-push:
|
||||||
tags: test,links
|
tags: test,links
|
||||||
glob: 'content/**/*.{md,html}'
|
glob: 'content/**/*.{md,html}'
|
||||||
run: |
|
run: |
|
||||||
echo "Running link checker for: {staged_files}"
|
echo "Running link checker for: {push_files}"
|
||||||
yarn test:links {staged_files}
|
yarn test:links {push_files}
|
||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
# Manage Docker containers
|
# Manage Docker containers
|
||||||
|
@ -100,13 +100,13 @@ pre-push:
|
||||||
tags: test,codeblocks,v2
|
tags: test,codeblocks,v2
|
||||||
env:
|
env:
|
||||||
SERVICE: cloud-pytest
|
SERVICE: cloud-pytest
|
||||||
run: yarn test:codeblocks:cloud '{staged_files}'
|
run: yarn test:codeblocks:cloud '{push_files}'
|
||||||
|
|
||||||
cloud-dedicated-pytest:
|
cloud-dedicated-pytest:
|
||||||
tags: test,codeblocks,v3
|
tags: test,codeblocks,v3
|
||||||
glob: content/influxdb/cloud-dedicated/**/*.md
|
glob: content/influxdb/cloud-dedicated/**/*.md
|
||||||
run: |
|
run: |
|
||||||
yarn test:codeblocks:cloud-dedicated '{staged_files}' &&
|
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
|
||||||
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
|
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
|
||||||
|
|
||||||
cloud-serverless-pytest:
|
cloud-serverless-pytest:
|
||||||
|
@ -114,13 +114,13 @@ pre-push:
|
||||||
glob: content/influxdb/cloud-serverless/**/*.md
|
glob: content/influxdb/cloud-serverless/**/*.md
|
||||||
env:
|
env:
|
||||||
SERVICE: cloud-serverless-pytest
|
SERVICE: cloud-serverless-pytest
|
||||||
run: yarn test:codeblocks:cloud-serverless '{staged_files}'
|
run: yarn test:codeblocks:cloud-serverless '{push_files}'
|
||||||
|
|
||||||
clustered-pytest:
|
clustered-pytest:
|
||||||
tags: test,codeblocks,v3
|
tags: test,codeblocks,v3
|
||||||
glob: content/influxdb/clustered/**/*.md
|
glob: content/influxdb/clustered/**/*.md
|
||||||
run: |
|
run: |
|
||||||
yarn test:codeblocks:clustered '{staged_files}' &&
|
yarn test:codeblocks:clustered '{push_files}' &&
|
||||||
./test/scripts/monitor-tests.sh stop clustered-pytest
|
./test/scripts/monitor-tests.sh stop clustered-pytest
|
||||||
|
|
||||||
telegraf-pytest:
|
telegraf-pytest:
|
||||||
|
@ -128,11 +128,11 @@ pre-push:
|
||||||
glob: content/telegraf/**/*.md
|
glob: content/telegraf/**/*.md
|
||||||
env:
|
env:
|
||||||
SERVICE: telegraf-pytest
|
SERVICE: telegraf-pytest
|
||||||
run: yarn test:codeblocks:telegraf '{staged_files}'
|
run: yarn test:codeblocks:telegraf '{push_files}'
|
||||||
|
|
||||||
v2-pytest:
|
v2-pytest:
|
||||||
tags: test,codeblocks,v2
|
tags: test,codeblocks,v2
|
||||||
glob: content/influxdb/v2/**/*.md
|
glob: content/influxdb/v2/**/*.md
|
||||||
env:
|
env:
|
||||||
SERVICE: v2-pytest
|
SERVICE: v2-pytest
|
||||||
run: yarn test:codeblocks:v2 '{staged_files}'
|
run: yarn test:codeblocks:v2 '{push_files}'
|
Loading…
Reference in New Issue