👷 ci: setup github actions and dependabot - #36
Merged
Conversation
chriskyfung
commented
Aug 7, 2026
Owner
- Add CI workflow for linting and testing
- Configure multi-platform PowerShell matrix
- Implement CodeQL security analysis
- Add dependency review for pull requests
- Setup weekly Dependabot updates
- Add CI workflow for linting and testing - Configure multi-platform PowerShell matrix - Implement CodeQL security analysis - Add dependency review for pull requests - Setup weekly Dependabot updates
- Split lint-and-test into PS 5.1 and PS 7 jobs - Simplify module installation logic - Remove redundant artifact upload steps - Standardize environment setup across jobs
- Add PowerShellExecutable parameter to Build.ps1 - Force specific PS engines in CI workflows - Replace CodeQL with PSScriptAnalyzer SARIF upload - Update Build.ps1 version and documentation
- Skip integration tests in CI to prevent network disruption - Add DesktopOnly tags for PowerShell Core compatibility - Fix variable scoping in theBrain test files - Prevent destructive tests from running on CI runners
- Extract module installation to composite action - Update CI branch trigger to master - Improve error handling in Build.ps1 using throw - Adjust runner and permissions for CI jobs
- Prevent errors when temp directory is missing
- ensure SARIF results are uploaded even if violations are found
- Move $script:SkipAll outside BeforeAll blocks - Ensure Pester Discovery evaluates skips correctly - Fix CI failures for specific theBrain tests - Simplify Mock implementations in theBrain tests
The ampersand character caused issues in CI; replaced with "and" for compatibility.
- Mock data directory path to simulate failure
- Ensure tests use temporary path via Pester v5 mock - Prevent tests from accessing actual brain data dirs
…s and adding UTF-8 BOM Windows PowerShell 5.1 incorrectly parsed the UTF-8 encoded script, rendering the non-ASCII ✓ checkmark as garbled '✓' text. Added a UTF-8 byte order mark (BOM) to the start of the script to ensure correct encoding detection in PS 5.1, and replaced all non-ASCII ✓ host output markers with ASCII [OK] strings to eliminate display issues.
- Mock TheBrainMeta.db path to remove local dependency - Ensure tests run without a local TheBrain install - Standardize Invoke-SqliteQuery mocks across tests
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Update test expectations and README example to use "and" instead of "&" in the VS Code Profile and Extension Export header text for consistency.
- Allow manual specification of brain data folder - Bypass PSSQLite dependency when path is provided - Update scripts to support optional directory input - Refactor tests to remove unnecessary database mocks
This reverts commit 17b6952.
- Add PSEdition Desktop requirement to tests - Skip Windows-specific tests when running on Core - Prevent CI failures in non-Windows environments
- Fix admin check skip logic in disk tests - Remove CI-specific skip for CSV injection test
- Group GitHub Actions updates to reduce PR noise - Add custom commit message prefix for updates - Improve configuration with documentation comments
chriskyfung
force-pushed
the
ci/setup-github-actions-and-dependabot
branch
from
August 10, 2026 09:22
7f2a5c3 to
7cae3e9
Compare
Owner
Author
SummaryThis PR introduces a full CI pipeline and automated dependency management for the repository, along with the Pester v5 fixes needed to make the test suite reliable across both PowerShell 5.1 and PowerShell 7. 🆕 What's new
🐛 Fixes
🧪 Tests
Status: All checks passing, no merge conflicts, ready to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.