Skip to content

Document build pipeline setup to install PHP and Composer dependencies #1

@eliot-akira

Description

@eliot-akira

Document how a plugin can add this to its workflow script as needed for external Composer dependencies.

Related:

Here's an example GitHub Action workflow.

# Install external deps, generate autoload and lock file
# Configure workspace as safe for Git to solve: https://github.com/composer/composer/issues/12221
- name: Install PHP dependencies (Composer)
  uses: php-actions/composer@v6
  with:
    php_version: '8.2'
  run: |
    git config --global --add safe.directory /app
    composer install --no-dev --prefer-dist --no-interaction --no-progress --optimize-autoloader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions