mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[fix] Fix some issues related to ci (#4135)
This commit is contained in:
@@ -53,7 +53,12 @@ jobs:
|
|||||||
- name: Check Markdown
|
- name: Check Markdown
|
||||||
uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101
|
uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101
|
||||||
with:
|
with:
|
||||||
globs: './home/**/*.md'
|
globs: |
|
||||||
|
./home/README.md
|
||||||
|
./home/blog/**/*.md
|
||||||
|
./home/docs/**/*.md
|
||||||
|
./home/i18n/zh-cn/docusaurus-plugin-content-blog/**/*.md
|
||||||
|
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/**/*.md
|
||||||
|
|
||||||
- name: Check filenames
|
- name: Check filenames
|
||||||
run: python ./script/ci/docs/check_file_name.py ./script/ci/docs/check_file_name.json
|
run: python ./script/ci/docs/check_file_name.py ./script/ci/docs/check_file_name.json
|
||||||
@@ -61,7 +66,8 @@ jobs:
|
|||||||
- name: Dead Link Check
|
- name: Dead Link Check
|
||||||
run: |
|
run: |
|
||||||
sudo npm install -g markdown-link-check@3.8.7
|
sudo npm install -g markdown-link-check@3.8.7
|
||||||
find ./home -name "*.md" > all_md_files.txt
|
find ./home/docs ./home/blog ./home/i18n/zh-cn/docusaurus-plugin-content-docs/current ./home/i18n/zh-cn/docusaurus-plugin-content-blog -name "*.md" > all_md_files.txt
|
||||||
|
printf '%s\n' ./home/README.md >> all_md_files.txt
|
||||||
grep -vFf ./script/ci/exclude_files.txt all_md_files.txt > to_check.txt
|
grep -vFf ./script/ci/exclude_files.txt all_md_files.txt > to_check.txt
|
||||||
xargs -P 8 -a to_check.txt -I{} markdown-link-check -c ./script/ci/link_check.json -q "{}"
|
xargs -P 8 -a to_check.txt -I{} markdown-link-check -c ./script/ci/link_check.json -q "{}"
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,13 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
"globs": ["home/**/*.md"],
|
"globs": [
|
||||||
|
"home/README.md",
|
||||||
|
"home/blog/**/*.md",
|
||||||
|
"home/docs/**/*.md",
|
||||||
|
"home/i18n/zh-cn/docusaurus-plugin-content-blog/**/*.md",
|
||||||
|
"home/i18n/zh-cn/docusaurus-plugin-content-docs/current/**/*.md"
|
||||||
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"default": true,
|
"default": true,
|
||||||
"MD001": true,
|
"MD001": true,
|
||||||
|
|||||||
@@ -108,19 +108,19 @@ sinks:
|
|||||||
codec: json
|
codec: json
|
||||||
framing:
|
framing:
|
||||||
method: newline_delimited
|
method: newline_delimited
|
||||||
headers:
|
|
||||||
content-type: application/json
|
|
||||||
auth:
|
auth:
|
||||||
strategy: basic
|
strategy: basic
|
||||||
user: admin
|
user: admin
|
||||||
password: hertzbeat
|
password: hertzbeat
|
||||||
# Increase timeout and retry settings for stability in CI environments
|
# Increase timeout and retry settings for stability in CI environments
|
||||||
request:
|
request:
|
||||||
timeout_secs: 60
|
headers:
|
||||||
retry_attempts: 10
|
content-type: application/json
|
||||||
retry_initial_backoff_secs: 2
|
timeout_secs: 60
|
||||||
retry_max_duration_secs: 120
|
retry_attempts: 10
|
||||||
# Batch settings for better throughput
|
retry_initial_backoff_secs: 2
|
||||||
batch:
|
retry_max_duration_secs: 120
|
||||||
max_bytes: 524288
|
# Batch settings for better throughput
|
||||||
timeout_secs: 5
|
batch:
|
||||||
|
max_bytes: 524288
|
||||||
|
timeout_secs: 5
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
"clear": "docusaurus clear",
|
"clear": "docusaurus clear",
|
||||||
"write-translations": "docusaurus write-translations",
|
"write-translations": "docusaurus write-translations",
|
||||||
"write-heading-ids": "docusaurus write-heading-ids",
|
"write-heading-ids": "docusaurus write-heading-ids",
|
||||||
"md-lint": "markdownlint-cli2 --config ../.markdownlint-cli2.jsonc \"./**/*.md\" \"#node_modules\"",
|
"md-lint": "markdownlint-cli2 --config ../.markdownlint-cli2.jsonc \"README.md\" \"blog/**/*.md\" \"docs/**/*.md\" \"i18n/zh-cn/docusaurus-plugin-content-blog/**/*.md\" \"i18n/zh-cn/docusaurus-plugin-content-docs/current/**/*.md\" \"#node_modules\"",
|
||||||
"md-lint-fix": "pnpm md-lint --fix",
|
"md-lint-fix": "pnpm md-lint --fix",
|
||||||
"github-avatar": "node github-avatar.js"
|
"github-avatar": "node github-avatar.js"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user