test: handle known OpenClaw Windows bug gracefully #9
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
| name: Windows Compatibility Check | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| test-windows: | |
| name: Verify Windows Status (OpenClaw CLI Bug) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install OpenClaw | |
| run: npm install -g openclaw@latest | |
| shell: powershell | |
| - name: Clean test environment | |
| run: | | |
| if (Test-Path "$env:USERPROFILE\.openclaw") { | |
| Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw" | |
| } | |
| shell: powershell | |
| - name: Run Windows tests | |
| run: | | |
| powershell -ExecutionPolicy Bypass -File test/test-model-selection.ps1 | |
| shell: powershell | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-test-results | |
| path: | | |
| ${{ env.USERPROFILE }}\.openclaw\openclaw.json |