Repository navigation
Add GitHub Actions CI workflow for SimpleWiki - #72
Conversation
This adds `.github/workflows/ci.yml` targeting Windows PowerShell 5.1 to run: - Encoding & BOM validation - PSScriptAnalyzer checks - Pester unit tests using the built-in Pester 3.4.0 - End-to-end static HTML export smoke tests Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
@jules CI ワークフローの実行で Pester テストが失敗しました。修正をお願いします。 1. エラー内容
2. 原因GitHub Actions の 3. 期待する修正
例: - name: Pester Unit Tests
run: |
# Force loading Pester 3.4.0 to match Windows 11 built-in environment
Remove-Module Pester -ErrorAction SilentlyContinue
Import-Module Pester -RequiredVersion 3.4.0 -Force -ErrorAction SilentlyContinue
if (-not (Get-Module Pester | Where-Object { $_.Version.Major -eq 3 })) {
Install-Module -Name Pester -RequiredVersion 3.4.0 -Force -Scope CurrentUser -SkipPublisherCheck
Import-Module Pester -RequiredVersion 3.4.0 -Force
}
Invoke-Pester -Script .\tests -EnableExit修正コミットのプッシュをお願いします! |
修正を行いました。ご指摘の通り、Pester 5 が優先ロードされる問題を回避するため、明示的に Pester 3.4.0 をロードするステップを追加しました。これで GitHub Actions ランナー上でも Windows 11 の組み込み環境と同様にテストが実行されるはずです。 |
This addresses test failures in GitHub Actions caused by Pester 5.9.0 being pre-installed and prioritized on the windows-latest runner. By unloading Pester and explicitly importing version 3.4.0 (the built-in version for Windows 11 / Windows PowerShell 5.1), we ensure that the legacy "Should Be" syntax tests succeed. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Added a robust CI workflow file for SimpleWiki following the instructions and constraints.
windows-latestwithshell: powershellto match vanilla Windows 11/PowerShell 5.1.Encoding & BOM Verificationstep that specifically validatesps1,psm1, andpsd1files forUTF-8 with BOMandbatfiles forUTF-8 without BOM.PSScriptAnalyzer.Invoke-Pester -Script .\tests -EnableExit.Export-MarkdigWiki.ps1and validates thatindex.htmlis generated successfully.PR created automatically by Jules for task 17543575806466417484 started by @chottokun