Skip to content

Commit

Permalink
Merge pull request #572 from turtle0x1/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
turtle0x1 authored Aug 18, 2024
2 parents 5910637 + 865e665 commit 170acf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install PHP 7.4
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update
sudo apt-get install -y php7.4
- name: setup lxdmosaic
run: sudo sh examples/test_setup.sh

Expand All @@ -50,7 +58,7 @@ jobs:

- name: run tests
run: /usr/bin/php7.4 -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html=./coverage

- name: run phpstan
run: /usr/bin/php7.4 vendor/bin/phpstan analyse src --level 1

Expand Down
4 changes: 2 additions & 2 deletions examples/test_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ sudo dpkg --purge --force-all lxd lxc
apt-get update

# # Install Dependecies
apt-get install -y apache2 php php-cli php-json php-mysql php-xml php-curl unzip zip git nodejs openssl || exit $?
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 $?
apt-get install -y mysql-server || exit $?
apt-get install -y --no-install-recommends cron || exit $?
apt-get install -y --no-install-recommends php-xdebug || exit $?
apt-get install -y --no-install-recommends php7.4-xdebug || exit $?

mkdir -p src/sensitiveData/certs
mkdir -p src/sensitiveData/backups
Expand Down

0 comments on commit 170acf6

Please sign in to comment.