Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngmy/phive-install-action
A GitHub Action to download PHIVE, install tools, and upload them to the artifact store
https://github.com/ngmy/phive-install-action
ci continuous-integration dependency-manager github-actions phive php
Last synced: 24 days ago
JSON representation
A GitHub Action to download PHIVE, install tools, and upload them to the artifact store
- Host: GitHub
- URL: https://github.com/ngmy/phive-install-action
- Owner: ngmy
- License: mit
- Created: 2021-03-04T15:31:10.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-05T14:19:11.000Z (over 3 years ago)
- Last Synced: 2024-10-31T10:38:37.784Z (about 2 months ago)
- Topics: ci, continuous-integration, dependency-manager, github-actions, phive, php
- Language: Shell
- Homepage: https://github.com/marketplace/actions/install-phive-tools
- Size: 35.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PHIVE Install Action
[![CI](https://github.com/ngmy/phive-install-action/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/ngmy/phive-install-action/actions/workflows/continuous-integration.yml)PHIVE Install Action is a GitHub Action to download [PHIVE](https://phar.io/), install tools while automatically answering "y" to the "Import this key?" question, and upload them to the artifact store.
## Requirements
PHIVE Install Action has the following requirements:* Bash
* PHP## Usage
Use PHIVE Install Action as a step in the job after the checkout step of your repository, as follows:
```yaml
- name: Install tools
uses: ngmy/phive-install-action@master
```You can also upload tools to the artifact store for use in subsequent jobs, as follows:
```yaml
jobs:
install_tools:
name: Install tools
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install tools
uses: ngmy/phive-install-action@master
- name: Upload tools to artifact store
uses: actions/upload-artifact@master
with:
name: tools
path: tools
test:
name: Test
runs-on: ubuntu-latest
needs: install_tools
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Download tools from artifact store
uses: actions/download-artifact@master
with:
name: tools
path: tools
- name: Set tools as an executable
run: find tools -type f -print0 | xargs -0 chmod +x
```### Input Parameters
#### phive-arguments
PHIVE Install Action always passes the `--copy` option to the PHIVE `install` command.
If you want to pass additional options or arguments, you can use the `phive-arguments` input parameter.For example:
```yaml
- name: Install tools
uses: ngmy/phive-install-action@master
with:
phive-arguments: --force-accept-unsigned vendor/unsigned-project
```#### phive-keyserver
If you want to change the GPG key server to use when installing PHIVE, you can use the `phive-keyserver` input parameter.For example:
```yaml
- name: Install tools
uses: ngmy/phive-install-action@master
with:
phive-keyserver: hkps://keyserver.ubuntu.com
```## License
PHIVE Install Action is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).