Skip to content

Use git source rules for validating gitdir: paths #5

Use git source rules for validating gitdir: paths

Use git source rules for validating gitdir: paths #5

Workflow file for this run

name: "Continuous Integration"
on: [push, pull_request]
jobs:
build:
name: Build hook-installer on ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
include:
- php: 8.0
runtests: false
experimental: false
- php: 8.1
runtests: true
experimental: false
- php: 8.2
runtests: true
experimental: false
- php: 8.3
runtests: true
experimental: false
- php: 8.4
runtests: true
experimental: false
- php: 8.5
runtests: true
experimental: false
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
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,97B02DD8E5071466
- name: Execute unit tests
if: ${{ matrix.runtests }}
run: tools/phpunit --no-coverage --testsuite UnitTests
- name: Check coding style
run: tools/phpcs --standard=psr12 src tests
- name: Static code analysis
run: tools/phpstan analyse