Some checks failed
CI / Deploy / PHP Lint (8.1) (push) Successful in 16s
CI / Deploy / PHP Lint (8.2) (push) Successful in 16s
CI / Deploy / PHP Lint (8.3) (push) Successful in 23s
CI / Deploy / PHPCS (WordPress standards) (push) Successful in 43s
CI / Deploy / 300-line rule (includes) (push) Successful in 9s
CI / Deploy / PHPUnit - stubs (PHP 8.1) (push) Successful in 20s
CI / Deploy / PHPUnit - stubs (PHP 8.2) (push) Successful in 20s
CI / Deploy / PHPUnit - stubs (PHP 8.3) (push) Successful in 25s
CI / Deploy / Deploy to staging (push) Successful in 23s
CI / Deploy / Audit - commit came from a PR (push) Successful in 51s
CI / Deploy / Smoke tests (staging) (push) Failing after 2m29s
CI / Deploy / Deploy to production (push) Has been skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it
122 lines
4.1 KiB
YAML
122 lines
4.1 KiB
YAML
# GENERATED by peptide-e2e/tools/gitea-pipeline/render.py from repos.json.
|
|
# Do not edit by hand: change repos.json or the template and re-render.
|
|
name: CI / Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request: {}
|
|
workflow_dispatch: {}
|
|
|
|
concurrency:
|
|
group: pipeline-peptide-repo-core-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
lint-php:
|
|
name: PHP Lint (${{ matrix.php }})
|
|
runs-on: ubuntu-latest
|
|
container: git.protopeer.com/peptide-repo/ci-php:2026-10
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: ["8.1", "8.2", "8.3"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/ci-lint-php@main
|
|
with:
|
|
php: ${{ matrix.php }}
|
|
|
|
phpcs:
|
|
name: PHPCS (WordPress standards)
|
|
runs-on: ubuntu-latest
|
|
container: git.protopeer.com/peptide-repo/ci-php:2026-10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.head_ref || github.ref_name }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/ci-phpcs@main
|
|
with:
|
|
autofix: 'true'
|
|
|
|
file-size:
|
|
name: 300-line rule (includes)
|
|
runs-on: ubuntu-latest
|
|
container: git.protopeer.com/peptide-repo/ci-php:2026-10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/ci-file-size@main
|
|
with:
|
|
paths: includes
|
|
|
|
phpunit:
|
|
name: PHPUnit - stubs (PHP ${{ matrix.php }})
|
|
runs-on: ubuntu-latest
|
|
container: git.protopeer.com/peptide-repo/ci-php:2026-10
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: ["8.1", "8.2", "8.3"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/ci-phpunit@main
|
|
with:
|
|
php: ${{ matrix.php }}
|
|
tests: stubs
|
|
|
|
deploy-staging:
|
|
name: Deploy to staging
|
|
needs: ["lint-php", "phpcs", "file-size", "phpunit"]
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
runs-on: peptide-vps
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/deploy@main
|
|
with:
|
|
stage: staging
|
|
target_path: wp-content/plugins/peptide-repo-core
|
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
ssh_host: ${{ secrets.SSH_HOST }}
|
|
ssh_port: ${{ secrets.SSH_PORT }}
|
|
ssh_username: ${{ secrets.SSH_USERNAME }}
|
|
|
|
smoke:
|
|
name: Smoke tests (staging)
|
|
needs: deploy-staging
|
|
runs-on: peptide-vps
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/smoke@main
|
|
with:
|
|
wp_admin_user: ${{ secrets.STAGING_WP_ADMIN_USER }}
|
|
wp_admin_password: ${{ secrets.STAGING_WP_ADMIN_PASSWORD }}
|
|
|
|
deploy-production:
|
|
name: Deploy to production
|
|
# Smoke is a gate: production runs only if staging deploy AND smoke succeeded.
|
|
# PROD_DEPLOY_ENABLED (org variable) is the cutover switch / kill switch.
|
|
needs: [deploy-staging, smoke]
|
|
if: ${{ vars.PROD_DEPLOY_ENABLED == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
runs-on: peptide-vps
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/deploy@main
|
|
with:
|
|
stage: production
|
|
target_path: wp-content/plugins/peptide-repo-core
|
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
ssh_host: ${{ secrets.SSH_HOST }}
|
|
ssh_port: ${{ secrets.SSH_PORT }}
|
|
ssh_username: ${{ secrets.SSH_USERNAME }}
|
|
|
|
audit-direct-push:
|
|
name: Audit - commit came from a PR
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
runs-on: ubuntu-latest
|
|
container: git.protopeer.com/peptide-repo/ci-php:2026-10
|
|
steps:
|
|
- uses: https://git.protopeer.com/peptide-repo/peptide-e2e/.gitea/actions/audit-direct-push@main
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|