feat(ci): expand cache paths to support all Node.js package managers

- Add comprehensive caching for npm, yarn, and pnpm package managers
- Cache paths now include:
  - npm: ~/.npm, node_modules/.cache
  - yarn: ~/.yarn, ~/.cache/yarn, ~/.cache/yarn/global
  - pnpm: ~/.pnpm-store, ~/.cache/pnpm, ~/.local/share/pnpm/global
- Update cache keys to include all lockfile types (package-lock.json, yarn.lock, pnpm-lock.yaml)
- Rename 'Cache Tree-sitter CLI' to 'Cache npx store' for clarity
- Apply changes consistently across test, lint, and coverage jobs

This improves cache hit rates and build performance regardless of which
Node.js package manager is used in the development environment.
This commit is contained in:
2025-09-13 04:52:14 +03:00
parent c5334da82f
commit 3f6411b23f
5 changed files with 75 additions and 26 deletions

View File

@@ -18,11 +18,16 @@ SHOW_SKIPPED_LINTERS: false # Show skipped linters in MegaLinter log
DISABLE_LINTERS:
- REPOSITORY_DEVSKIM
- C_CLANG_FORMAT # Generated code may not follow all style rules
- JSON_PRETTIER # Disabled for causing probelms
- SPELL_LYCHEE # Disabled due to too many false positives
- SPELL_CSPELL # Disabled due to too many false positives
- REPOSITORY_TRUFFLEHOG # Disabled due to being far too slow
- JAVASCRIPT_PRETTIER # We are not using Prettier for JS
YAML_YAMLLINT_CONFIG_FILE: .yamllint.yml
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdownlint.json
# Exclude some paths from all linters as they are generated
FILTER_REGEX_EXCLUDE: >
(node_modules|test/spec|src|megalinter-reports)