Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PHP Proxy App CI

on:
workflow_dispatch:
push:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Set Permissions
run: chmod -R 755 .

- name: Start PHP Server
run: |
php -S localhost:8000 > /dev/null 2>&1 &
sleep 5

- name: Test Application
run: |
curl -I http://localhost:8000

- name: Create ZIP
run: zip -r php-proxy-app.zip . -x "*.git*"

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: php-proxy-app
path: php-proxy-app.zip
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$config = array();

// a unique key that identifies this application - DO NOT LEAVE THIS EMPTY!
$config['app_key'] = '';
$config['app_key'] = '123456789';

// a secret key to be used during encryption
$config['encryption_key'] = '';
Expand Down