Skip to content

Commit

Permalink
PHP is not part of the latest Ubuntu image
Browse files Browse the repository at this point in the history
Using shivammathur/setup-php@v2 for setting up PHP using the version matrix.
  • Loading branch information
DragonBe committed Jul 5, 2024
1 parent 5632789 commit 989e421
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:

steps:
- name: Set default PHP version ${{ matrix.php-versions }}
run: sudo ln -snf /usr/bin/php${{ matrix.php-versions }} /usr/bin/php
uses: shivammathur/setup-php@v2
with:
php-version: '{{ matrix.php-versions }}'

- name: Display current PHP version
run: /usr/bin/php --version
run: php --version

- uses: actions/checkout@v2

Expand Down

0 comments on commit 989e421

Please sign in to comment.