Skip to content

Commit 8667400

Browse files
committed
CI: Add more strict php 7.4 commands
1 parent 62d37ab commit 8667400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/php.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,16 @@ jobs:
181181
git clone https://github.com/chamilo/chash
182182
cd chash
183183
git checkout 0.2.x
184-
composer install
185-
php -d phar.readonly=0 createPhar.php
184+
php7.4 /usr/local/bin/composer install
185+
php7.4 -d phar.readonly=0 createPhar.php
186186
chmod +x chash.phar
187187
sudo mv chash.phar /usr/local/bin/chash
188188
189189
- name: Install chamilo
190190
run: |
191-
php ${{ github.workspace }}/chash/chash.php chash:chamilo_install 1.11.x ${{ github.workspace }} --no-interaction --sitename="Chamilo" --site_url="http://localhost/" --institution="Chamilo" --institution_url="https://chamilo.org" --encrypt_method="sha1" --firstname="John" --lastname="Doe" --language="english" --driver="pdo_mysql" --host="localhost" --port="3306" --dbname="chamilo" --dbuser="root" --dbpassword="root" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --linux-user="www-data" --linux-group="www-data" --username="admin" --password="admin" --email="admin@example.com" --phone="555-5555"
191+
php7.4 ${{ github.workspace }}/chash/chash.php chash:chamilo_install 1.11.x ${{ github.workspace }} --no-interaction --sitename="Chamilo" --site_url="http://localhost/" --institution="Chamilo" --institution_url="https://chamilo.org" --encrypt_method="sha1" --firstname="John" --lastname="Doe" --language="english" --driver="pdo_mysql" --host="localhost" --port="3306" --dbname="chamilo" --dbuser="root" --dbpassword="root" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --linux-user="www-data" --linux-group="www-data" --username="admin" --password="admin" --email="admin@example.com" --phone="555-5555"
192192
sudo chmod -R 777 app/cache app/logs app/courses app/upload web
193-
php ${{ github.workspace }}/chash/chash.php chash:chamilo_status
193+
php7.4 ${{ github.workspace }}/chash/chash.php chash:chamilo_status
194194
ls -la
195195
bash tests/travis/post_installation.sh
196196
curl http://localhost/index.php

0 commit comments

Comments
 (0)