Repository navigation
Merge pull request #181 from Wynn-WUKO/chore/remove-unused-scripts #54
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 Installer Unicode | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'desktop/**' | |
| - '.github/workflows/installer-unicode.yml' | |
| - '.github/workflows/release.yml' | |
| - '.github/workflows/macos-private-build.yml' | |
| - 'tools/rebuild_wcdb_release.py' | |
| - '.gitattributes' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'desktop/**' | |
| - '.github/workflows/installer-unicode.yml' | |
| - '.github/workflows/release.yml' | |
| - '.github/workflows/macos-private-build.yml' | |
| - 'tools/rebuild_wcdb_release.py' | |
| - '.gitattributes' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| # 不同提交分别完成回归检查,避免连续推送让旧提交留下 Cancelled 状态。 | |
| # 同一提交的重复触发仍可取消,减少重复运行。 | |
| group: installer-unicode-${{ github.workflow }}-${{ github.ref }}-${{ github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| unicode-paths: | |
| name: Windows installer Unicode paths | |
| runs-on: windows-2022 | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: desktop/package-lock.json | |
| # 仅测试安装器函数,不构建完整应用,也不需要签名或真实用户数据。 | |
| - name: Install locked test dependencies | |
| working-directory: desktop | |
| run: npm ci --ignore-scripts | |
| - name: Verify release configuration and Unicode installation | |
| working-directory: desktop | |
| shell: pwsh | |
| run: | | |
| node --test ` | |
| tests/package-config.test.cjs ` | |
| tests/macos-xkey-signing.test.cjs ` | |
| tests/desktop-settings.test.cjs ` | |
| tests/output-dir.test.cjs ` | |
| tests/installer-output-dir.test.cjs ` | |
| tests/installer-safety.test.cjs ` | |
| tests/installer-unicode-integration.test.cjs | |
| if ($LASTEXITCODE -ne 0) { | |
| throw 'Release configuration or installer checks failed.' | |
| } |