Skip to content

Commit

Permalink
Install PHP from PPA
Browse files Browse the repository at this point in the history
Change-Id: I363ef7bfbd49fcf6021a5dced338bb2bbd226928
  • Loading branch information
Krinkle committed Jan 6, 2025
1 parent 9f19aa8 commit 921026b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
include:
# Includes php7.4 - 8.3 and composer 2
# Includes 8.3 and composer 2
# https://github.com/actions/runner-images/blob/releases/ubuntu20/20241023/images/ubuntu/Ubuntu2004-Readme.md#php-tools
- php: '7.4'
os: ubuntu-20.04
Expand All @@ -39,6 +39,8 @@ jobs:
os: ubuntu-20.04
- php: '8.3'
os: ubuntu-20.04
- php: '8.4'
os: ubuntu-20.04

runs-on: ${{ matrix.os }}

Expand All @@ -47,7 +49,12 @@ jobs:
uses: actions/checkout@v2

- name: Use PHP ${{ matrix.php }}
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
run: |
sudo apt-add-repository ppa:ondrej/php -y
sudo apt-get update
sudo apt-get install -y php${{ matrix.php }} php${{ matrix.php }}-apcu
php --version
php -i
- name: Validate composer.json and composer.lock
run: composer validate
Expand Down

0 comments on commit 921026b

Please sign in to comment.