Skip to content

Commit

Permalink
Replace ::set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jan 17, 2024
1 parent 7ca6756 commit 642f89b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ jobs:
id: set_phpunit
run: |
if [[ "${{ matrix.php }}" > "7.4" ]]; then
echo '::set-output name=PHPUNIT::8.5.*'
echo "PHPUNIT=8.5.*" >> $GITHUB_ENV
else
echo '::set-output name=PHPUNIT::5.7.*||6.*||7.5.*'
echo "PHPUNIT=PHPUNIT::5.7.*||6.*||7.5.*" >> $GITHUB_ENV
fi
- name: 'Composer: set up PHPUnit'
run: composer require --no-update phpunit/phpunit:"${{ steps.set_phpunit.outputs.PHPUNIT }}"
env:
PHPUNIT: ${{ env.PHPUNIT }}
run: composer require --no-update phpunit/phpunit:"${{ env.PHPUNIT }}"

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
Expand Down

0 comments on commit 642f89b

Please sign in to comment.