Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.64 KB

File metadata and controls

59 lines (43 loc) · 1.64 KB

Genero GitHub Actions

Shared composite actions and reusable workflows for Genero's Bedrock/Sage WordPress projects.

Setup

This is a private repository. To allow other repos in the org to use these actions:

  1. Go to Settings → Actions → General on this repo
  2. Under "Access", select "Accessible from repositories in the 'generoi' organization"

Composite Actions

Action Description
setup PHP + Node.js setup with caching, Fontawesome and Packagist auth
install-wordpress MySQL + WP dev server install (single or multisite)
setup-ddev DDEV setup (pinned SHA)
ssh-agent SSH agent wrapper (pinned SHA)

Usage

- uses: generoi/github-actions/setup@v1
  with:
    npm_fontawesome_auth_token: ${{ secrets.NPM_FONTAWESOME_AUTH_TOKEN }}
    packagist_github_token: ${{ secrets.PACKAGIST_GITHUB_TOKEN }}

- uses: generoi/github-actions/install-wordpress@v1
  with:
    multisite: 'true'

Reusable Workflows

Workflow Description
test.yml Lint + install WP + smoke test + phpunit
deploy.yml SSH + build + test + deployer
e2e.yml Playwright E2E tests against a URL
vulnerability-scan.yml WP vuln scan + Google Chat notification

Usage

jobs:
  test:
    uses: generoi/github-actions/.github/workflows/test.yml@v1
    secrets: inherit
    with:
      multisite: true
      smoke_grep: 'app/themes/gds/public/scripts/app.js'

Versioning

Projects pin to the major tag (@v1). Patch updates are automatic.

Dependabot monitors upstream action SHAs — merge its PRs to update all projects at once.