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.
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: wayofdev/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.
dependencies
, optional: Which dependencies to install, one of"lowest"
,"locked"
,"highest"
working-directory
, optional: The working directory to use, defaults to"."
.
none
-
When
dependencies
is set to"lowest"
, dependencies are installed in the directory specified byworking-directory
withcomposer 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 byworking-directory
withcomposer update --ansi --no-interaction --no-progress