Skip to content

Upgrade phive to version 0.15.3 #539

Upgrade phive to version 0.15.3

Upgrade phive to version 0.15.3 #539

Workflow file for this run

name: "Continuous Integration"
on: [push, pull_request]
jobs:
build:
name: Build captainhook on ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
include:
- php: 8.0
buildphar: false
experimental: false
ini: error_reporting="E_ALL"
- php: 8.1
buildphar: false
experimental: false
ini: error_reporting="E_ALL"
- php: 8.2
buildphar: true
experimental: false
ini: error_reporting="E_ALL"
- php: 8.3
buildphar: true
experimental: false
ini: error_reporting="E_ALL"
- php: 8.4
buildphar: false
experimental: true
ini: error_reporting="E_ALL & ~E_DEPRECATED"
env:
PHAR: build/phar/captainhook.phar
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
ini-values: ${{ matrix.ini }}
extensions: mbstring
- name: PHP Version
run: php -v
- name: Update composer
run: composer self-update
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Install tooling
run: GITHUB_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} tools/phive --no-progress --home ./.phive install --force-accept-unsigned --trust-gpg-keys 4AA394086372C20A,31C7E470E2138192,8E730BA25823D8B5,CF1A108D0E7AE720,2DF45277AEF09A2F,51C67305FFC2E5C0
- name: Execute unit tests
run: tools/phpunit --no-coverage --testsuite UnitTests
- name: Execute integration tests
run: tools/phpunit --no-coverage --testsuite IntegrationTests
- name: Execute dummy pre commit
run: bin/captainhook --configuration=build/captainhook.json hook:pre-commit
- name: Check coding style
run: tools/phpcs --standard=psr12 src tests
- name: Static code analysis
run: tools/phpstan analyse
- name: Force install PHAR Symfony version
if: ${{ matrix.buildphar }}
run: COMPOSER=composer.phar.json composer update
- name: Validate configuration for humbug/box
if: ${{ matrix.buildphar }}
run: tools/box validate box.json
- name: Compile phar with humbug/box
if: ${{ matrix.buildphar }}
run: tools/box compile
- name: Show info about generated phar with humbug/box
if: ${{ matrix.buildphar }}
run: tools/box info ${{ env.PHAR }}
- name: Run phar
if: ${{ matrix.buildphar }}
run: ${{ env.PHAR }} --help
- name: Run phar pre-commit
if: ${{ matrix.buildphar }}
run: ${{ env.PHAR }} --configuration=build/captainhook.json hook:pre-commit
- name: Run phar pre-push
if: ${{ matrix.buildphar }}
run: ${{ env.PHAR }} --configuration=build/captainhook.json hook:pre-push