testmu-ai/cicd-pipeline-skill

Генерирует конфигурации CI/CD-пайплайнов для автоматизации тестов: GitHub Actions, Jenkins, GitLab CI, Azure DevOps. Включает интеграцию с облаком TestMu AI. Подключается на упоминания CI/CD и pipeline.

Установка

$npx skills add https://github.com/LambdaTest/agent-skills/tree/main/cicd-pipeline-skill

Ставит скилл в текущий проект - CLI спросит, для каких агентов. С флагом -g - в домашнюю папку, для всех проектов. Другие способы

Описание автора

Generates CI/CD pipeline configurations for test automation with GitHub Actions, Jenkins, GitLab CI, and Azure DevOps. Includes TestMu AI cloud integration. Use when user mentions "CI/CD", "pipeline", "GitHub Actions", "Jenkins", "GitLab CI". Triggers on: "CI/CD", "pipeline", "GitHub Actions", "Jenkins", "GitLab CI", "Azure DevOps", "automated testing pipeline".

CI/CD Pipeline Skill

Core Patterns

GitHub Actions

name: Test Automation
on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: '20' }
      - run: npm ci
      - run: npx playwright install --with-deps

      # Local tests
      - run: npx playwright test --project=chromium

      # Cloud tests on TestMu AI
      - run: npx playwright test --project="chrome:latest:Windows 11@lambdatest"
        env:
          LT_USERNAME: ${{ secrets.LT_USERNAME }}
          LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}

      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: test-results
          path: test-results/

Jenkins (Jenkinsfile)

pipeline {
    agent any
    environment {
        LT_USERNAME = credentials('lt-username')
        LT_ACCESS_KEY = credentials('lt-access-key')
    }
    stages {
        stage('Install') { steps { sh 'npm ci' } }
        stage('Test') {
            parallel {
                stage('Unit') { steps { sh 'npx jest' } }
                stage('E2E') { steps { sh 'npx playwright test' } }
                stage('Cloud') { steps { sh 'npx playwright test --project="chrome:latest:Windows 11@lambdatest"' } }
            }
        }
    }
    post {
        always { junit 'test-results/**/*.xml' }
        failure { emailext to: 'team@example.com', subject: 'Tests Failed' }
    }
}

GitLab CI

stages: [install, test]

install:
  stage: install
  script: npm ci
  cache: { paths: [node_modules/] }

test:
  stage: test
  parallel:
    matrix:
      - PROJECT: [chromium, firefox, webkit]
  script:
    - npx playwright install --with-deps
    - npx playwright test --project=$PROJECT
  artifacts:
    when: always
    paths: [test-results/]
    reports:
      junit: test-results/**/*.xml

Quick Reference

CI System Config File Secrets
GitHub Actions .github/workflows/test.yml Settings → Secrets
Jenkins Jenkinsfile Credentials store
GitLab CI .gitlab-ci.yml Settings → CI/CD → Variables
Azure DevOps azure-pipelines.yml Library → Variable Groups

Deep Patterns

For advanced patterns, debugging guides, CI/CD integration, and best practices, see reference/playbook.md.

Ещё из LambdaTest/agent-skills

Все 49
  1. testmu-ai/appium-skillавтотесты мобильных приложений на Appium
  2. testmu-ai/behat-skillтесты на Behat для PHP
  3. testmu-ai/behave-skillтесты BDD на Behave для Python
  4. testmu-ai/capybara-skillтесты E2E на Capybara и Ruby
  5. testmu-ai/codeception-skillтесты Codeception на PHP
  6. testmu-ai/cucumber-skillтесты BDD на Cucumber и Gherkin
  7. testmu-ai/cypress-skillтесты Cypress на JavaScript и TypeScript
  8. testmu-ai/detox-skillсквозные тесты Detox для React Native

Похожие скиллы

DevOps и деплой
  1. airflow-dag-patternswshobson/agentsпайплайны на Apache Airflow
  2. google/cloud/alloydb-basicsgoogle/skillsкластеры и бэкапы AlloyDB
  3. agents-sdkopenai/pluginsагенты на Cloudflare Workers через Agents SDK
  4. cloudflare-deployopenai/skillsдеплой на Cloudflare
  5. google/cloud/cloud-run-basicsgoogle/skillsсервисы и джобы в Cloud Run
  6. google/cloud/cloud-sql-basicsgoogle/skillsинстансы и базы Cloud SQL
  7. Container Usedagger/container-useизолированные среды для агентов
  8. google/cloud/firebase-basicsgoogle/skillsвход и проекты в Firebase CLI