https://github.com/szepeviktor/phive
Install PHIVE in GitHub Actions
https://github.com/szepeviktor/phive
phar phive php verification
Last synced: about 1 year ago
JSON representation
Install PHIVE in GitHub Actions
- Host: GitHub
- URL: https://github.com/szepeviktor/phive
- Owner: szepeviktor
- Created: 2020-10-19T15:58:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-06T21:05:38.000Z (almost 5 years ago)
- Last Synced: 2025-04-13T20:07:16.712Z (about 1 year ago)
- Topics: phar, phive, php, verification
- Language: Shell
- Homepage: https://github.com/szepeviktor/phive-install
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install PHIVE in GitHub Actions
The Phar Installation and Verification Environment :)
### Usage
```yaml
jobs:
phive:
runs-on: ubuntu-latest
steps:
- name: "Install PHIVE"
uses: "szepeviktor/phive@v1"
```
Full example.
```yaml
jobs:
phive:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "7.4"
- "7.3"
steps:
- name: "Set default PHP version"
run: "sudo update-alternatives --set php /usr/bin/php${{ matrix.php-version }}"
- name: "Checkout code"
uses: "actions/checkout@v2"
- name: "Cache tools installed with PHIVE"
uses: "actions/cache@v2.1.2"
with:
path: "${{ runner.temp }}/.phive"
key: "php-${{ matrix.php-version }}-phive-${{ hashFiles('.phive/phars.xml') }}"
restore-keys: "php-${{ matrix.php-version }}-phive-"
- name: "Install PHIVE"
uses: "szepeviktor/phive@v1"
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
- name: "Install PHP tools with PHIVE"
uses: "szepeviktor/phive-install@v1"
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
trustGpgKeys: "4AA394086372C20A,CF1A108D0E7AE720,E82B2FB314E9906E"
```