Perform unit tests on the PHP versions supported by Supported Versions and perform static analysis and coding standard inspections on the latest versions.
If you want to change the PHP version, use the v1 or next_stable branch.
name: Coding Standards
on:
push:
pull_request:
workflow_dispatch:
jobs:
cs:
uses: ray-di/.github/.github/workflows/coding-standards.yml@v2
name: Continuous Integration
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci:
uses: ray-di/.github/.github/workflows/continuous-integration.yml@v2
with:
script: demo/run.php
If you have a script you want to run, such as demo, specify it with script
.
name: Static Analysis
on:
push:
pull_request:
workflow_dispatch:
jobs:
sa:
uses: ray-di/.github/.github/workflows/static-analysis.yml@v2
If the config file composer-require-checker.json
for ComposerRequireChecker is present, set has_ crc_config
to true. If not, set it to false or remove the has_crcrc_config
specification itself.