Skip to content

Latest commit

 

History

History
100 lines (68 loc) · 3.21 KB

README.md

File metadata and controls

100 lines (68 loc) · 3.21 KB

Build Status Software License Commits since latest release Discord Twitter

Phive / Install

This action installs dependencies with Phive, the Phar Installer, based on the specified PHIVE_HOME directory and a list of trusted GPG keys. It's designed to be flexible, allowing you to specify the PHIVE_HOME directory and the GPG keys to trust for the installation process.


🤔 Example Usage

Create a new workflow file, for example, .github/workflows/integrate.yml, and add the following code to it.

---

on:  # yamllint disable-line rule:truthy
  push:
    branches:
      - master
  pull_request:

name: 🔍 Continuous integration

jobs:
  integrate:
    runs-on: ubuntu-latest

    steps:
      - name: 📦 Check out the codebase
        uses: actions/checkout@v4

      # ...

      - name: 📥 Install dependencies with Phive
        uses: cycle/gh-actions/actions/phive/install@master
        with:
          phive-home: '.build/phive'
          trust-gpg-keys: '0x033E5F8D801A2F8D'

      # ...

...

For details, see actions/phive/install/action.yml.

Real-world examples can be found in the wayofdev/laravel-package-tpl repository.


🗂️ Structure

Inputs

  • dependencies, optional: Which dependencies to install, one of "lowest", "locked", "highest"
  • working-directory, optional: The working directory to use, defaults to ".".

Outputs

none

Side Effects

  • When dependencies is set to "lowest", dependencies are installed in the directory specified by working-directory with

    composer update --ansi --no-interaction --no-progress --prefer-lowest
  • composer install --ansi --no-interaction --no-progress
  • When dependencies is set to "highest", dependencies are installed in the directory specified by working-directory with

    composer update --ansi --no-interaction --no-progress