Skip to content

Commit

Permalink
Debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Mar 1, 2024
1 parent 5f363fc commit c22e685
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/qit-environment-test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,16 @@ jobs:
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-13'
working-directory: src
run: |
expected_major_minor="7.4"
actual_major_minor=$(php qit-cli.php env:exec "php -r \"echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;\"")
expected_major_minor="${{ matrix.php }}"
# Create the PHP script within the Docker environment
php qit-cli.php env:exec "echo '<?php echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION; ?>' > temp_version_check.php"
# Execute the PHP script
actual_major_minor=$(php qit-cli.php env:exec "php temp_version_check.php")
# Clean up the PHP script
php qit-cli.php env:exec "rm temp_version_check.php"
if [[ "$actual_major_minor" == "$expected_major_minor" ]]; then
echo "PHP Major.Minor version is as expected: $actual_major_minor"
Expand Down

0 comments on commit c22e685

Please sign in to comment.