协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
cross-platform-test-matrix【开发与工程】Generate CI test matrix for Windows, macOS, and Linux combinations
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate CI/CD test matrix configurations for testing desktop applications across Windows, macOS, and Linux.
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"ciPlatform": { "enum": ["github-actions", "azure-devops", "gitlab-ci"] },
"platforms": { "type": "array" },
"architectures": { "type": "array" }
},
"required": ["projectPath"]
}
name: Test Matrix
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [x64]
include:
- os: macos-latest
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
architecture: ${{ matrix.arch }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.os }}-${{ matrix.arch }}
path: test-results/
playwright-electron-configdesktop-ci-architect agent