Skip to content

Commit 170acf6

Browse files
authored
Merge pull request #572 from turtle0x1/fix-ci
Fix CI
2 parents 5910637 + 865e665 commit 170acf6

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/php.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ jobs:
3939
${{ runner.os }}-build-
4040
${{ runner.os }}-
4141
42+
- name: Install PHP 7.4
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install -y software-properties-common
46+
sudo add-apt-repository ppa:ondrej/php -y
47+
sudo apt-get update
48+
sudo apt-get install -y php7.4
49+
4250
- name: setup lxdmosaic
4351
run: sudo sh examples/test_setup.sh
4452

@@ -50,7 +58,7 @@ jobs:
5058

5159
- name: run tests
5260
run: /usr/bin/php7.4 -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html=./coverage
53-
61+
5462
- name: run phpstan
5563
run: /usr/bin/php7.4 vendor/bin/phpstan analyse src --level 1
5664

examples/test_setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ sudo dpkg --purge --force-all lxd lxc
55
apt-get update
66

77
# # Install Dependecies
8-
apt-get install -y apache2 php php-cli php-json php-mysql php-xml php-curl unzip zip git nodejs openssl || exit $?
8+
apt-get install -y apache2 php7.4 php7.4-cli php7.4-json php7.4-mysql php7.4-xml php7.4-curl php7.4-mbstring unzip zip git nodejs openssl || exit $?
99
apt-get install -y mysql-server || exit $?
1010
apt-get install -y --no-install-recommends cron || exit $?
11-
apt-get install -y --no-install-recommends php-xdebug || exit $?
11+
apt-get install -y --no-install-recommends php7.4-xdebug || exit $?
1212

1313
mkdir -p src/sensitiveData/certs
1414
mkdir -p src/sensitiveData/backups

0 commit comments

Comments
 (0)