Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add composer-installer alternative #92

Open
szepeviktor opened this issue Nov 18, 2023 · 0 comments
Open

Add composer-installer alternative #92

szepeviktor opened this issue Nov 18, 2023 · 0 comments

Comments

@szepeviktor
Copy link
Owner

szepeviktor commented Nov 18, 2023

https://github.com/ergebnis/.github/blob/main/actions/composer/install/run.sh

name: "Shared Install Dependencies"

inputs:
  dependencies:
    type: "string"
    default: "highest"
    required: true

runs:
  using: "composite"

  steps:
    - name: "Install lowest dependencies"
      if: ${{ inputs.dependencies == 'lowest' }}
      shell: "bash"
      run: "composer update --prefer-lowest --no-interaction --no-progress"

    - name: "Install highest dependencies"
      if: ${{ inputs.dependencies == 'highest' }}
      shell: "bash"
      run: "composer update --no-interaction --no-progress"

    - name: "Install locked dependencies"
      if: ${{ inputs.dependencies == 'locked' }}
      shell: "bash"
      run: |
        test -f composer.lock
        composer install --no-interaction --no-progress

    - name: "Install development dependencies"
      if: ${{ inputs.dependencies == 'development' }}
      shell: "bash"
      run: |
          composer config --no-interaction -- minimum-stability dev
          composer update --no-interaction --no-progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant