File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Cache PHP
2
- on :
2
+ on :
3
3
- push
4
4
- repository_dispatch
5
5
jobs :
@@ -13,17 +13,21 @@ jobs:
13
13
name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Add PPA
19
+ run : |
20
+ LC_ALL=C.UTF-8 sudo apt-add-repository ppa:ondrej/php -y
21
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update
17
22
18
23
- name : Clean PHP
19
24
run : |
25
+ sudo apt-get purge 'php*'
20
26
sudo rm -rf /var/cache/apt/archives/*
21
- sudo apt-get remove php*
22
27
23
28
- name : Restore PHP
24
- run : |
25
- curl -o /tmp/php.sh -sSL https://raw.githubusercontent.com/actions/virtual-environments/master/images/linux/scripts/installers/php.sh
26
- sudo bash /tmp/php.sh || true
29
+ run : curl -o /tmp/php.sh -sSL https://raw.githubusercontent.com/actions/virtual-environments/master/images/linux/scripts/installers/php.sh | sudo bash || true
30
+
27
31
- name : Setup PHP
28
32
uses : shivammathur/setup-php@develop
29
33
with :
You can’t perform that action at this time.
0 commit comments