Skip to content

Commit

Permalink
Dev: Must check PHP 5.6 syntax before anything else (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed May 8, 2023
1 parent 2b3f27a commit e2cf48b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,23 @@ jobs:
cat application/config/config.php
sudo tail -n 500 /var/log/mysql/error.log || true
- name: Test the server
- name: Check for syntax errors
run: find application/ -type f -name '*.php' -print0 | xargs -I {} -0 -P 0 php -l {}

- name: Run the test script
run: |
wget localhost
cat index.html
DOMAIN=localhost ./third_party/bin/phpunit --stop-on-failure
# Chromedriver setup.
# Note: Keep getting timeout problems on Travis with chromedriver.
# wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip
# unzip chromedriver_linux64.zip

- name: Test the server
run: |
wget localhost
cat index.html
- name: Set up Selenium with firefox
run: |
which firefox
Expand All @@ -111,9 +119,3 @@ jobs:
wget "https://selenium-release.storage.googleapis.com/3.7/selenium-server-standalone-3.7.1.jar"
export MOZ_HEADLESS=1
java -jar selenium-server-standalone-3.7.1.jar -enablePassThrough false > /dev/null 2> /dev/null &
- name: Check for syntax errors
run: find application/ -type f -name '*.php' -print0 | xargs -I {} -0 -P 0 php -l {}

- name: Run the test script
run: |
DOMAIN=localhost ./third_party/bin/phpunit --stop-on-failure

0 comments on commit e2cf48b

Please sign in to comment.