Skip to content

Commit cd0ab1e

Browse files
Krinklejenkins-bot
authored andcommitted
build: Fix GitHub CI to select alternative and remove PHP 7.4/8.0
It seems update-alternatives used to happen by default but not anymore. Thus, all builds at https://github.com/wikimedia/less.php/actions/ for forks and pull-requests silently switched to the same PHP 8.3 build. Remove PHP 7.4 and 8.0 as those will (correctly) fail after this, because phpunit 10 and mediawiki-codesniffer 48 requires PHP 8.1 as of Ied6663cf1b (ff0163a) and I3e9c217a49 (c544fa9). Change-Id: If4836e474c8647d67f5b84cfd3d2bdfafc2e6e7e
1 parent a7f5d23 commit cd0ab1e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/php.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,26 @@ jobs:
2929
include:
3030
# Includes php 8.3 and composer 2
3131
# https://github.com/actions/runner-images/blob/ubuntu24/20250105.1/images/ubuntu/Ubuntu2404-Readme.md#php-tools
32-
- php: '7.4'
33-
os: ubuntu-24.04
34-
- php: '8.0'
35-
os: ubuntu-24.04
3632
- php: '8.1'
37-
os: ubuntu-24.04
33+
os: ubuntu-latest
3834
- php: '8.2'
39-
os: ubuntu-24.04
35+
os: ubuntu-latest
4036
- php: '8.3'
41-
os: ubuntu-24.04
37+
os: ubuntu-latest
4238
- php: '8.4'
43-
os: ubuntu-24.04
39+
os: ubuntu-latest
4440

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

4743
steps:
4844
- name: Checkout
49-
uses: actions/checkout@v2
45+
uses: actions/checkout@v4
5046

5147
- name: Use PHP ${{ matrix.php }}
5248
run: |
5349
sudo apt-add-repository ppa:ondrej/php -y
5450
sudo apt-get install -y -q php${{ matrix.php }} php${{ matrix.php }}-intl php${{ matrix.php }}-mbstring php${{ matrix.php }}-xml php${{ matrix.php }}-apcu php${{ matrix.php }}-curl php${{ matrix.php }}-xdebug
51+
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
5552
php --version
5653
5754
- name: Validate composer.json and composer.lock

0 commit comments

Comments
 (0)