Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/blog-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ jobs:
- name: Check blog post front matter
run: python3 scripts/normalize_blog_posts.py --check

- name: Clear npm cache
run: rm -rf "${{ runner.temp }}/npm-cache"

- name: Lint Markdown
run: npx markdownlint-cli2@0.17.2 "doc/blog/**/*.md" "#doc/blog/vendor/**"
run: npx --cache "${{ runner.temp }}/npm-cache" markdownlint-cli2@0.17.2 "doc/blog/**/*.md" "#doc/blog/vendor/**"

- name: Build Blog
working-directory: ./doc/blog
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pre-commit-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ jobs:
- name: Generate Compile Database
run: |
make compile_db_all
- name: Clear npm cache
run: |
rm -rf "${{ runner.temp }}/npm-cache"
- name: Run pre-commit hooks
env:
npm_config_cache: ${{ runner.temp }}/npm-cache
run: |
pre-commit run --all-files
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ repos:
files: ^doc/blog/_posts/.*\.md$
- id: markdownlint-blog
name: Lint and fix blog Markdown
entry: npx markdownlint-cli2@0.17.2 --fix "#doc/blog/vendor/**"
language: system
entry: markdownlint-cli2 --fix "#doc/blog/vendor/**"
language: node
additional_dependencies: [markdownlint-cli2@0.17.2]
files: ^doc/blog/.*\.md$
exclude: ^doc/blog/vendor/
- id: license-header-check
Expand Down
Loading