mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Test CI
This commit is contained in:
parent
34d2a4f27a
commit
ec40423b63
9
.github/workflows/php-mysql.yml
vendored
9
.github/workflows/php-mysql.yml
vendored
|
|
@ -134,7 +134,6 @@ jobs:
|
|||
|
||||
- name: Setup Apache
|
||||
run: |
|
||||
echo "Setting up Apache + FPM"
|
||||
pwd
|
||||
whoami
|
||||
# install apache web server
|
||||
|
|
@ -147,6 +146,7 @@ jobs:
|
|||
#sudo sed -e "s?%GITHUB_WORKSPACE%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
|
||||
#sudo cat /etc/apache2/sites-available/000-default.conf
|
||||
a2ensite 000-default
|
||||
a2enmod php8.1
|
||||
ls /etc/apache2/sites-enabled
|
||||
|
||||
sudo adduser $(whoami) www-data
|
||||
|
|
@ -162,11 +162,9 @@ jobs:
|
|||
ls -l /home/runner
|
||||
ls -l /home/runner/work
|
||||
ls -l /var/www
|
||||
ls -l /var/www/html
|
||||
set +e
|
||||
curl -I localhost
|
||||
curl -I 127.0.0.1
|
||||
wget -O - http://127.0.0.1 > $GITHUB_WORKSPACE/test.html 2>&1
|
||||
cat $GITHUB_WORKSPACE/test.html
|
||||
|
||||
- name: Chech Apache availability
|
||||
run: |
|
||||
|
|
@ -179,8 +177,9 @@ jobs:
|
|||
cat /var/log/apache2/other_vhosts_access.log
|
||||
wget -O - http://127.0.0.1/robots.txt
|
||||
# The wget should return a page with line '<meta name="generator" content="Dolibarr installer">
|
||||
wget -O - http://127.0.0.1 > $GITHUB_WORKSPACE/test.html 2>&1
|
||||
wget -O - http://127.0.0.1/index.php > $GITHUB_WORKSPACE/test.html 2>&1
|
||||
head $GITHUB_WORKSPACE/test.html
|
||||
|
||||
echo Logs are...
|
||||
sudo cat /var/log/apache2/access.log
|
||||
sudo cat /var/log/apache2/error.log
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user