@@ -2,31 +2,26 @@ name: Shaarli CI
2
2
on : [push, pull_request]
3
3
jobs :
4
4
php :
5
- runs-on : ubuntu-latest
5
+ runs-on : ubuntu-22.04
6
6
strategy :
7
7
fail-fast : false
8
8
matrix :
9
9
php-versions : ['7.4', '8.0', '8.1', '8.2']
10
10
name : PHP ${{ matrix.php-versions }}
11
11
steps :
12
- - name : Set locales
13
- run : |
14
- sudo locale-gen de_DE.utf8 && \
15
- sudo locale-gen en_US.utf8 && \
16
- sudo locale-gen fr_FR.utf8 && \
17
- sudo dpkg-reconfigure --frontend=noninteractive locales
18
-
19
- - name : Install Gettext
20
- run : sudo apt-get install gettext
21
-
22
12
- name : Checkout
23
13
uses : actions/checkout@v4
24
14
15
+ - name : Install Gettext
16
+ run : |
17
+ sudo apt-get update && \
18
+ sudo apt-get install -y gettext
19
+
25
20
- name : Setup PHP
26
21
uses : shivammathur/setup-php@v2
27
22
with :
28
23
php-version : ${{ matrix.php-versions }}
29
- extensions : gd, xml, curl, mbstring, intl, gettext
24
+ extensions : gd, xml, curl, mbstring, intl, gettext, ldap
30
25
tools : composer:v2
31
26
32
27
- name : Check PHP version
@@ -36,16 +31,32 @@ jobs:
36
31
run : composer config --unset platform && composer config platform.php ${{ matrix.php-versions }}
37
32
38
33
- name : Update dependencies for PHP 8.x
39
- if : ${{ matrix.php-versions == '8.0' || matrix.php-versions == '8.1 ' }}
34
+ if : ${{ matrix.php-versions != '7.4 ' }}
40
35
run : |
41
36
composer update && \
42
37
composer remove --dev phpunit/phpunit && \
43
38
composer require --dev phpunit/php-text-template ^2.0 && \
44
39
composer require --dev phpunit/phpunit ^9.0
45
40
46
41
- name : Update dependencies for PHP 7.x
47
- if : ${{ matrix.php-versions != '8.0' && matrix.php-versions != '8.1' }}
48
- run : composer update
42
+ if : ${{ matrix.php-versions == '7.4' }}
43
+ run : |
44
+ composer update && \
45
+ echo php -v
46
+
47
+ - name : Install locales
48
+ run : |
49
+ sudo apt-get update && \
50
+ sudo apt-get install -y locales
51
+
52
+ - name : Set locales
53
+ run : |
54
+ sudo locale-gen de_DE.utf8 && \
55
+ sudo locale-gen en_US.utf8 && \
56
+ sudo locale-gen fr_FR.utf8
57
+
58
+ - name : Check locales
59
+ run : locale -a
49
60
50
61
- name : Clean up
51
62
run : make clean
0 commit comments