Skip to content

Commit 76c49aa

Browse files
committed
Add Windows debug workflow for fast iteration
Manual dispatch workflow that runs a single filtered test on Windows. Default filter: *auth*wrong*. Trigger via: gh workflow run windows-debug.yml -f test_filter="*your*pattern*"
1 parent d7a7d78 commit 76c49aa

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Windows Debug
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
test_filter:
7+
description: 'Test filter pattern (e.g. "*auth*wrong*")'
8+
required: false
9+
default: '*auth*wrong*'
10+
11+
env:
12+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
13+
14+
jobs:
15+
debug:
16+
runs-on: windows-latest
17+
steps:
18+
- name: Disable auto CRLF
19+
run: git config --global core.autocrlf false
20+
21+
- uses: actions/checkout@v6
22+
23+
- uses: ilammy/msvc-dev-cmd@v1
24+
25+
- name: Install MoonBit
26+
shell: pwsh
27+
run: |
28+
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
29+
irm https://cli.moonbitlang.com/install/powershell.ps1 | iex
30+
"$env:USERPROFILE\.moon\bin" | Out-File -Append -FilePath $env:GITHUB_PATH
31+
32+
- name: Install deps
33+
run: moon update
34+
35+
- name: Setup PostgreSQL
36+
uses: ikalnytskyi/action-setup-postgres@v7
37+
with:
38+
username: postgres
39+
password: postgres
40+
database: postgres
41+
port: 5433
42+
ssl: true
43+
44+
- name: Run filtered test
45+
run: moon test --target native src/tests/ --filter "${{ github.event.inputs.test_filter }}"

0 commit comments

Comments
 (0)