From 989e4216e242742564c626de828be29116aaffd6 Mon Sep 17 00:00:00 2001 From: DragonBe Date: Fri, 5 Jul 2024 19:31:30 +0200 Subject: [PATCH] PHP is not part of the latest Ubuntu image Using shivammathur/setup-php@v2 for setting up PHP using the version matrix. --- .github/workflows/php.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 9b7179d..4b054ee 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -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