Skip to content

Commit

Permalink
Checking variable permanence
Browse files Browse the repository at this point in the history
  • Loading branch information
gnongsie committed Jul 25, 2024
1 parent d820bc2 commit 217a4f5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/php-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ jobs:
composer validate
if [[ ${{env.PHP_VERSION}} == "5.6" || ${{env.PHP_VERSION}} == "7.0" ]]; then
export phpunit_version=5.6.*
echo "PHPUNIT_VERSION=$(echo 5.6.* | cut -c 1-6)" >> "$GITHUB_ENV"
elif [[ ${{env.PHP_VERSION}} == "7.1" ]]; then
export phpunit_version=5.7.*
echo "PHPUNIT_VERSION=$(echo 5.7.* | cut -c 1-6)" >> "$GITHUB_ENV"
elif [[ ${{env.PHP_VERSION}} == "7.2" ]]; then
export phpunit_version=8.5.*
echo "PHPUNIT_VERSION=$(echo 8.5.* | cut -c 1-6)" >> "$GITHUB_ENV"
else
export phpunit_version=9.5.*
echo "PHPUNIT_VERSION=$(echo 9.5.* | cut -c 1-6)" >> "$GITHUB_ENV"
fi
echo "${{env.PHPUNIT_VERSION}}"
- name: Composer Update
run: |
echo "$phpunit_version"
echo "${{env.PHPUNIT_VERSION}}"
# composer require "phpunit/phpunit:$phpunit_version" --no-update

0 comments on commit 217a4f5

Please sign in to comment.