Skip to content

Commit a1bfe9a

Browse files
committed
ci: run Windows unit tests on every PR
Entire-Checkpoint: 01KYT2ERNWE2M35RVW7TNYD1QS
1 parent 279b988 commit a1bfe9a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,33 @@ jobs:
6767
E2E_CHECKPOINT_STORE: ${{ matrix.checkpoint_store }}
6868
run: mise run test:e2e:canary
6969

70+
test-windows:
71+
runs-on: windows-latest
72+
timeout-minutes: 10
73+
steps:
74+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
75+
with:
76+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
77+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
78+
with:
79+
go-version-file: go.mod
80+
# Real-Windows tests must include Windows or MSYS in their top-level
81+
# test name so this job selects them without running POSIX-only harnesses.
82+
- name: Windows unit tests
83+
run: go test ./cmd/entire/cli/... -run '(Windows|MSYS)' -count=1 -v
84+
7085
test:
7186
runs-on: ubuntu-latest
7287
needs:
7388
- test-core
7489
- test-integration
7590
- test-canary
91+
- test-windows
7692
if: ${{ always() }}
7793
steps:
7894
- name: Check dependencies
7995
run: |
8096
[ "${{ needs.test-core.result }}" = "success" ]
8197
[ "${{ needs.test-integration.result }}" = "success" ]
8298
[ "${{ needs.test-canary.result }}" = "success" ]
99+
[ "${{ needs.test-windows.result }}" = "success" ]

0 commit comments

Comments
 (0)