mcpField
C
cicd-pipeline-skill

cicd-pipeline-skill

github.com/lambdatestCloud & DevOps384278 installsUpdated 2w ago
Repository

About cicd-pipeline-skill

cicd-pipeline-skill is a CI/CD pipeline reference for teams configuring automated builds and tests. It provides setup examples and quick references for GitHub Actions, Jenkins, GitLab CI, and Azure DevOps.

Key features

  1. 01GitHub Actions pipeline patterns
  2. 02Jenkinsfile examples
  3. 03GitLab CI configuration examples
  4. 04Config and secrets quick reference

Use cases

  1. 01Set up automated test pipelines
  2. 02Find the relevant CI configuration file
  3. 03Locate where CI secrets are managed

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lambdatest/agent-skills --skill cicd-pipeline-skill

After installing, type/cicd-pipeline-skillin Claude Code to confirm it loaded.

Bundled filesreference/playbook.md

Details

From the project README

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: '[email protected]', 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 SystemConfig FileSecrets
GitHub Actions.github/workflows/test.ymlSettings → Secrets
JenkinsJenkinsfileCredentials store
GitLab CI.gitlab-ci.ymlSettings → CI/CD → Variables
Azure DevOpsazure-pipelines.ymlLibrary → Variable Groups

Deep Patterns

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

Comments

Markdown supported