-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (33 loc) · 1.08 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test PHP benchmark
on: [ push, pull_request ]
jobs:
setup:
name: Check PHP frameworks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install WRK
run: sudo apt-get install wrk w3m
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
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.3
sudo a2enmod php8.3 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