-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from joanhey/gh-action
Github action to test the setup and frameworks
- Loading branch information
Showing
5 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Test PHP benchmark | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
setup: | ||
name: Check PHP frameworks | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Install WRK | ||
run: sudo apt-get install wrk w3m | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, ctype, iconv, intl | ||
coverage: none | ||
|
||
- name: Install Apache mod_php | ||
run: | | ||
LC_ALL=C.UTF-8 sudo apt-add-repository http://ppa.launchpad.net/ondrej/php/ubuntu | ||
sudo apt install libapache2-mod-php8.2 | ||
sudo a2enmod php8.2 rewrite | ||
shell: bash | ||
|
||
- name: Setup frameworks | ||
run: bash setup.sh | ||
|
||
- name: Copy files to web root | ||
run: | | ||
sudo mkdir /var/www/html/PHP-Frameworks-Bench | ||
sudo cp -R ./* /var/www/html/PHP-Frameworks-Bench/ | ||
sudo chown -R www-data:www-data /var/www/html | ||
- name: Restart apache server | ||
run: sudo service apache2 restart | ||
|
||
- name: Check frameworks | ||
run: bash check.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters