Skip to content

[github-actions] Infer workflow PHP version (#76)#114

Merged
coisa merged 6 commits intomainfrom
codex/76-infer-php-version
Apr 19, 2026
Merged

[github-actions] Infer workflow PHP version (#76)#114
coisa merged 6 commits intomainfrom
codex/76-infer-php-version

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 19, 2026

Summary

  • add a reusable PHP version resolver for workflows and sync it into consumer .github/scripts
  • make reports, wiki, and tests resolve PHP from composer.lock or composer.json instead of hard-coding 8.3
  • build the test matrix from the inferred minimum supported PHP minor and document the workflow behavior

Testing

  • ./vendor/bin/phpunit tests/Workflow/ResolvePhpVersionScriptTest.php tests/Console/Command/SyncCommandTest.php
  • python3 .github/scripts/resolve_php_version.py
  • ruby -e "require 'yaml'; %w[.github/workflows/wiki.yml .github/workflows/reports.yml .github/workflows/tests.yml resources/github-actions/wiki.yml resources/github-actions/reports.yml resources/github-actions/tests.yml].each { |path| YAML.load_file(path); puts 'OK ' + path }"
  • git diff --check

Closes #76

@github-actions github-actions bot added the enhancement New feature or request label Apr 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 19, 2026

@coisa coisa merged commit ab066a3 into main Apr 19, 2026
17 of 20 checks passed
@coisa coisa deleted the codex/76-infer-php-version branch April 19, 2026 08:05
github-actions bot added a commit that referenced this pull request Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infer PHP version for wiki and reports workflows

1 participant