Merge pull request #6123 from influxdata/fix-lefthook-patterns

fix(lefthook): Incorrect glob patterns. Add linting for influxdb3/exp…
pull/6190/head^2
Jason Stirnaman 2025-07-07 16:05:29 -05:00 committed by GitHub
commit e339b70045
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 38 additions and 9 deletions

View File

@ -26,21 +26,49 @@ pre-commit:
--minAlertLevel=error {staged_files}'
cloud-dedicated-lint:
tags: lint,v3
glob: 'content/influxdb/cloud-dedicated/*.md'
glob:
- 'content/influxdb3/cloud-dedicated/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh
--config=content/influxdb/cloud-dedicated/.vale.ini
--config=content/influxdb3/cloud-dedicated/.vale.ini
--minAlertLevel=error {staged_files}'
cloud-serverless-lint:
tags: lint,v3
glob: 'content/influxdb/cloud-serverless/*.md'
glob:
- 'content/influxdb3/cloud-serverless/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh
--config=content/influxdb/cloud-serverless/.vale.ini
--config=content/influxdb3/cloud-serverless/.vale.ini
--minAlertLevel=error {staged_files}'
clustered-lint:
tags: lint,v3
glob: 'content/influxdb/clustered/*.md'
glob:
- 'content/influxdb3/clustered/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh
--config=content/influxdb/cloud-serverless/.vale.ini
--config=content/influxdb3/cloud-serverless/.vale.ini
--minAlertLevel=error {staged_files}'
core-lint:
tags: lint,v3
glob:
- 'content/influxdb3/core/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh
--config=.vale.ini
--minAlertLevel=error {staged_files}'
enterprise-lint:
tags: lint,v3
glob:
- 'content/influxdb3/enterprise/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh
--config=.vale.ini
--minAlertLevel=error {staged_files}'
explorer-lint:
tags: lint,clients
glob: 'content/influxdb3/explorer/*.md'
run: '.ci/vale/vale.sh
--config=.vale.ini
--minAlertLevel=error {staged_files}'
telegraf-lint:
tags: lint,clients
@ -102,6 +130,7 @@ pre-push:
build-pytest-image:
tags: test
run: yarn build:pytest:image
# Test code blocks in markdown files
cloud-pytest:
glob: content/influxdb/cloud/*.md
@ -112,21 +141,21 @@ pre-push:
cloud-dedicated-pytest:
tags: test,codeblocks,v3
glob: content/influxdb/cloud-dedicated/*.md
glob: content/influxdb3/cloud-dedicated/*.md
run: |
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
cloud-serverless-pytest:
tags: test,codeblocks,v3
glob: content/influxdb/cloud-serverless/*.md
glob: content/influxdb3/cloud-serverless/*.md
env:
SERVICE: cloud-serverless-pytest
run: yarn test:codeblocks:cloud-serverless '{push_files}'
clustered-pytest:
tags: test,codeblocks,v3
glob: content/influxdb/clustered/*.md
glob: content/influxdb3/clustered/*.md
run: |
yarn test:codeblocks:clustered '{push_files}' &&
./test/scripts/monitor-tests.sh stop clustered-pytest