← ClaudeAtlas

github-actionslisted

Use this skill when authoring or debugging GitHub Actions workflows (.github/workflows/*.yml) — e.g. "add CI for this Drupal project on GitHub", "run phpcs/phpstan/phpunit on pull requests", "cache composer dependencies", "deploy over SSH when main is pushed", "why didn't my workflow trigger", or anything involving jobs, matrices, runners, secrets, or reusable workflows.
siva01c/claude-plugins · ★ 16 · Code & Development · score 78
Install: claude install-skill siva01c/claude-plugins
# GitHub Actions Skill GitHub Actions runs workflows from `.github/workflows/*.yml`. This skill covers workflow authoring with a Drupal project as the working example: linting, static analysis, PHPUnit with a database service, and SSH/drush deployment. --- ## Workflow anatomy ```yaml name: CI on: pull_request: push: branches: [main] permissions: contents: read # least privilege — grant more only per job concurrency: group: ci-${{ github.ref }} cancel-in-progress: true # newer push cancels the outdated run jobs: phpcs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: '8.3' tools: composer:v2 - uses: actions/cache@v4 with: path: ~/.composer/cache key: composer-${{ hashFiles('composer.lock') }} restore-keys: composer- - run: composer install --no-progress - run: vendor/bin/phpcs --standard=Drupal,DrupalPractice web/modules/custom ``` Key defaults to always set: - **`permissions:`** — the implicit token is powerful; start from `contents: read` and widen per job only when needed. - **`concurrency:`** — avoids burning runner minutes on superseded pushes. --- ## PHPUnit with a database service ```yaml phpunit: runs-on: ubuntu-latest services: db: image: mariadb:11.4 env: MARIADB_DATABASE: drupal_test MARIADB_ROOT_PASSWORD: roo