8c3c67171b
chore(deps): update GitHub Actions dependencies
...
- actions/checkout: v6.0.0 -> v6.0.1
- actions/setup-node: v6.0.0 -> v6.1.0
- softprops/action-gh-release: v2.4.2 -> v2.5.0
- ivuorinen/actions/*: v2025.11.x -> v2025.12.10
2026-01-04 15:33:28 +02:00
d4cf0aa6bc
fix(ci): separate CodeQL languages in matrix
...
Previously 'actions,javascript' was treated as a single language.
Now correctly split into separate 'actions' and 'javascript' entries.
2026-01-04 15:33:15 +02:00
4cc202c687
ci: improve workflow configuration and reliability
...
- Replace global read-all permissions with scoped permissions (contents: read, actions: write)
- Fix cache configuration to exclude node_modules and include package-lock.json
- Improve CI workflow resolution with flexible path matching and pagination
- Verify version instead of committing version bumps from CI
- Detect prereleases and publish with appropriate npm tags (next vs latest)
- Use generic test suite description in release notes to avoid drift
2026-01-04 15:33:15 +02:00
ccb9121b89
fix: resolve documentation inconsistencies and add ExampleGroup variants
...
Documentation Fixes:
- README.md: Update test count from 59 to 63 (badge, features, test command)
- README.md: Fix lint script references to actual npm scripts
- CONTRIBUTING.md: Correct format script reference to npm run format:check
- package.json: Remove non-existent yamllint script, split lint:markdown into check/fix variants
Grammar Enhancements:
- Add fExampleGroup and xExampleGroup to Context block variants
- Regenerate parser with new grammar (63/63 tests passing, 100% success rate)
Syntax Highlighting:
- Add fExampleGroup and xExampleGroup to focused/skipped block highlights
- Remove non-matching Data modifier tokens (:raw, :expand, #|)
- Add "End" keyword as block terminator
Memory File Corrections:
- Remove incorrect merge_group trigger references
- Remove pr-lint.yml workflow references (deleted in previous optimization)
- Update test counts with timestamps (59→63, added 2025-12-11)
- Update conflict count (13→5, optimized)
Code Style:
- Auto-format renovate.json and tree-sitter.json with prettier
2026-01-04 15:33:00 +02:00
41b3c5d345
chore: add prettier and format all files
...
- Install prettier ^3.6.2
- Add .prettierrc with project formatting rules
- Add .prettierignore to exclude generated files and dependencies
- Add npm scripts: format and format:check
- Format all files with prettier
2026-01-04 15:32:59 +02:00
dcad1573a8
fix(ci): remove unsupported --language flag from tree-sitter parse
...
The --language flag is not supported in tree-sitter-cli 0.25.10.
Tree-sitter correctly auto-detects the grammar based on file extension.
2026-01-04 15:32:40 +02:00
56a716a09e
chore: update dependencies and workflow actions
...
- Update GitHub Actions to latest versions (checkout v6, setup-node v6, cache v4.3)
- Update package dependencies
- Format workflow files
- Update .gitignore and project configuration
2026-01-04 15:32:40 +02:00
9208f7ff8c
ci: improve workflow determinism and security scanning
...
- Add --language=shellspec flag to tree-sitter parse for deterministic grammar selection
- Add C++ language to CodeQL analysis to scan src/scanner.c for security issues
Addresses PR #1 review comments from CodeRabbit.
2026-01-04 15:32:40 +02:00
3f6411b23f
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.
2026-01-04 15:32:40 +02:00
c5334da82f
fix(ci): ensure parser is built before testing in GitHub workflows
...
- Add explicit parser build step before sample code testing
- Remove --scope parameter that requires parser to be compiled first
- Fix tree-sitter CLI v0.25.0 compatibility issue in CI environment
The issue was that tree-sitter CLI v0.25.0 requires the parser to be
compiled before it can recognize custom language scopes. This fix
ensures the parser is always built before attempting to parse test files,
resolving the 'Unknown scope' error in GitHub Actions.
2026-01-04 15:32:40 +02:00
193f8871b6
fix: apply CodeRabbit nitpick suggestions and improve code quality
...
- Fix grammar.js TypeScript errors by correcting optional field usage
- Update .yamlignore to use more robust glob pattern (**/node_modules/**)
- Remove hard-coded test count from README.md for maintainability
- Fix shellcheck directive format (add space after #) in all test specs
- Fix typos throughout test specifications:
- 'can not' → 'cannot'
- 'expantion' → 'expansion'
- 'singnal' → 'signal'
- 'It mean' → 'It means'
- Update CODE_OF_CONDUCT.md HTTP links to HTTPS
- Update tree-sitter parse command to use --scope instead of --language
- Add comments to .mega-linter.yml explaining disabled linters
All grammar tests still pass (61/61) and the parser functions correctly
with the updated tree-sitter CLI v0.25.0.
2026-01-04 15:32:39 +02:00
d65c6e6ec4
refactor: enhance CI/CD workflows and apply CodeRabbit suggestions
...
- Convert GitHub Actions from local to inline actions for better maintainability
- Add comprehensive caching for npm dependencies, tree-sitter CLI, and build artifacts
- Fix checkout steps missing in test matrix jobs
- Apply defensive programming in test coverage validation
- Use local tree-sitter CLI via npx instead of global installation
- Update tree-sitter-cli to v0.25.0 for compatibility with tree-sitter-bash
- Add proper tree-sitter field to package.json with grammar metadata
- Fix grammar precedence for Data blocks (#| lines now have higher precedence)
- Standardize dates in memory files to September 12, 2025
- Enhance workflow robustness with dynamic workflow ID resolution
- Improve test file pattern matching and error handling
This commit addresses all CodeRabbit review suggestions and optimizes
GitHub Actions workflows for better performance and reliability.
2026-01-04 15:32:39 +02:00
dd21bc5107
chore(ci): update workflows
2026-01-04 15:32:39 +02:00
b180fbeb48
chore: lint and code review fixes
2026-01-04 15:32:39 +02:00
19b7b27ceb
fix(ci): add checkout before testing, cleanup
2026-01-04 15:32:39 +02:00
de1b21e88d
fix(ci): use inline steps instead of actions
2026-01-04 15:32:39 +02:00
66f2aa1099
fix(ci): checkout before using local actions
2026-01-04 15:32:39 +02:00
c8ba576b4e
feat: implement complete tree-sitter-shellspec grammar with comprehensive testing
...
- Add full ShellSpec grammar extending tree-sitter-bash
- Support all ShellSpec constructs: Describe, Context, It, hooks, utilities
- Include Data block parsing with statements and argument styles
- Add 61 comprehensive test cases covering real-world patterns
- Implement optimized GitHub workflows with CI/CD automation
- Configure complete development tooling (linting, formatting, pre-commit)
- Add comprehensive documentation and contribution guidelines
- Optimize grammar conflicts to zero warnings
- Support editor integration for Neovim, VS Code, Emacs
Breaking Changes:
- Initial release, no previous API to break
BREAKING CHANGE: Initial implementation of tree-sitter-shellspec grammar
# Conflicts:
# .github/workflows/codeql.yml
# .github/workflows/pr-lint.yml
# .pre-commit-config.yaml
# Conflicts:
# .github/workflows/pr-lint.yml
# Conflicts:
# .github/workflows/pr-lint.yml
2026-01-04 15:32:39 +02:00
renovate[bot]
a54653aec1
chore(deps)!: update ivuorinen/actions (v2025.11.28 → v2026.01.01) ( #54 )
2026-01-02 09:49:08 +02:00
renovate[bot]
7362a26865
chore(deps): update github/codeql-action action (v4.31.7 → v4.31.9) ( #48 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-17 07:48:30 +02:00
renovate[bot]
2a2018313b
chore(deps): update github/codeql-action action (v4.31.6 → v4.31.7) ( #46 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-07 05:49:49 +02:00
renovate[bot]
762bf92544
chore(deps): update actions/checkout action (v6.0.0 → v6.0.1) ( #45 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-05 16:57:55 +02:00
renovate[bot]
ef684994d2
chore(deps): update github/codeql-action action (v4.31.5 → v4.31.6) ( #44 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-03 14:50:37 +02:00
renovate[bot]
3c68cd2d5e
chore(deps)!: update ivuorinen/actions (v25.11.26 → v2025.11.28) ( #27 )
2025-11-29 10:00:45 +02:00
renovate[bot]
1f60912b47
chore(deps): update ivuorinen/actions action (25.11.24 → v25.11.26) ( #42 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-28 16:38:09 +02:00
renovate[bot]
9fd0403c52
chore(deps): update ivuorinen/actions action (25.10.7 → 25.11.24) ( #21 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-25 22:37:32 +02:00
renovate[bot]
0ea5f92a9b
chore(deps): update github/codeql-action action (v4.31.2 → v4.31.5) ( #36 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-25 10:52:13 +02:00
renovate[bot]
9e427f55a7
chore(deps)!: update actions/checkout (v5.0.0 → v6.0.0) ( #40 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-25 10:12:31 +02:00
b2b319ddd2
fix(ci): switch CodeQL language from 'javascript' to 'actions'
2025-11-25 10:06:25 +02:00
renovate[bot]
ccea9029ee
chore(deps): update github/codeql-action action (v4.31.0 → v4.31.2) ( #30 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-06 21:29:03 +02:00
renovate[bot]
66b9da45f6
chore(deps): update github/codeql-action action (v4.30.9 → v4.31.0) ( #26 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 13:54:17 +02:00
renovate[bot]
79a6d4d360
chore(deps): update github/codeql-action action (v4.30.8 → v4.30.9) ( #23 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-20 12:53:13 +03:00
renovate[bot]
60fd962b12
chore(deps): update github/codeql-action action (v4.30.7 → v4.30.8) ( #18 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 23:25:46 +03:00
renovate[bot]
012c7994e0
chore(deps)!: update github/codeql-action (v3.30.7 → v4.30.7) ( #14 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-10 14:40:37 +03:00
renovate[bot]
3ac34eb1ff
chore(deps): update github/codeql-action action (v3.30.6 → v3.30.7) ( #15 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-10 12:38:01 +03:00
renovate[bot]
606fae2d22
chore(deps): update ivuorinen/actions action (25.10.1 → 25.10.7) ( #16 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-10 10:52:29 +03:00
renovate[bot]
296b1c5a21
chore(deps): update ivuorinen/actions action (25.9.21 → 25.10.1) ( #11 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 10:51:06 +03:00
renovate[bot]
de4860e00f
chore(deps): update github/codeql-action action (v3.30.5 → v3.30.6) ( #12 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 00:39:04 +03:00
renovate[bot]
9e3b4cda89
chore(deps): update github/codeql-action action (v3.30.3 → v3.30.5) ( #8 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-28 23:30:50 +03:00
renovate[bot]
69da91726b
chore(deps): update ivuorinen/actions action (25.9.19 → 25.9.21) ( #7 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-23 13:22:39 +03:00
renovate[bot]
4ef8c0fa3c
chore(deps): update ivuorinen/actions action (25.9.17 → 25.9.19) ( #6 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 21:21:52 +03:00
renovate[bot]
1e769419dc
chore(deps): update ivuorinen/actions action (25.9.8 → 25.9.17) ( #4 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-19 09:41:36 +03:00
renovate[bot]
13750690bf
chore(deps): update github/codeql-action action (v3.30.1 → v3.30.3) ( #3 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 11:10:40 +03:00
2e62a33827
Initial commit
2025-09-11 22:41:39 +03:00