界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

cross-platform-test-matrix

cross-platform-test-matrix

【开发与工程】Generate CI test matrix for Windows, macOS, and Linux combinations

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: cross-platform-test-matrix description: Generate CI test matrix for Windows, macOS, and Linux combinations allowed-tools: Read, Write, Edit, Bash, Glob, Grep tags: [testing, ci-cd, cross-platform, matrix, github-actions] graph: domains: [domain:software-engineering] specializations: [specialization:desktop-development] skillAreas: [skill-area:cross-platform-testing, skill-area:cross-platform-desktop] roles: [role:desktop-developer, role:fullstack-engineer] workflows: [workflow:feature-development, workflow:release-management]

cross-platform-test-matrix

Generate CI/CD test matrix configurations for testing desktop applications across Windows, macOS, and Linux.

Capabilities

  • Generate GitHub Actions matrix
  • Configure Azure Pipelines matrix
  • Set up platform-specific tests
  • Handle architecture variants (x64, arm64)
  • Configure parallel execution
  • Set up artifact collection

Input Schema

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "ciPlatform": { "enum": ["github-actions", "azure-devops", "gitlab-ci"] },
    "platforms": { "type": "array" },
    "architectures": { "type": "array" }
  },
  "required": ["projectPath"]
}

GitHub Actions Matrix

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/

Related Skills

  • playwright-electron-config
  • desktop-ci-architect agent
我的收藏