Shared GitHub configuration for inspirum repositories.
Defaults for every repository that does not have its own copy:
php.yml runs on every PHP library:
- Lint (once, on
lint-php):phpcsandcomposer-dependency-analyser - Test (per PHP version in
php):phpstanandphpunit, plus a coverage upload to Scrutinizer oncoverage-php
Paths are read from each repository's phpcs.xml, phpstan.neon and phpunit.xml.dist.
name: Test
on:
- push
- pull_request
- workflow_dispatch
jobs:
php:
uses: inspirum/.github/.github/workflows/php.yml@main
with:
php: '["8.2", "8.3", "8.4", "8.5"]'
coverage-php: '8.2'| Input | Default | Description |
|---|---|---|
php |
["8.1", "8.2", "8.3", "8.4", "8.5"] |
JSON array of PHP versions to test on |
lint-php |
8.5 |
PHP version for coding standard and dependency check |
coverage-php |
(empty, no coverage) | PHP version to collect and upload coverage on |
Callers use @main, so every push to main takes effect in all repositories on their next run. Keep changes to the inputs backward compatible.