From d0201b036babb74f6969569db4404d076d5fc37a Mon Sep 17 00:00:00 2001 From: jhuang-tw <77732008+jhuang-tw@users.noreply.github.com> Date: Mon, 17 Aug 2026 23:50:22 -0700 Subject: [PATCH] test: make Windows case assertions CRLF-safe --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 464811a..c00924d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: shell: bash run: sudo ln -sf "$(command -v pwsh)" /usr/local/bin/powershell - - name: Routing regression (163 cases) + - name: Routing regression shell: pwsh run: ./skills/scripts/test-routing.ps1 @@ -58,8 +58,8 @@ jobs: -Sample $sample $scope = Join-Path $scratch 'work/offline-sample/scope.md' $raw = Get-Content $scope -Raw - if ($raw -notmatch '(?m)^- mode: offline$') { throw 'offline sample did not keep offline network mode' } - if ($raw -notmatch '(?m)^- ready_for_act: true$') { throw 'offline sample did not become ready_for_act' } + if ($raw -notmatch '(?m)^- mode: offline\r?$') { throw 'offline sample did not keep offline network mode' } + if ($raw -notmatch '(?m)^- ready_for_act: true\r?$') { throw 'offline sample did not become ready_for_act' } ./skills/scripts/case-guard.ps1 -CaseRoot (Join-Path $scratch 'work/offline-sample') ./skills/scripts/case-init.ps1 `