Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
51cb16f
Update .gitignore
usernane Sep 27, 2025
c35b109
chore: Updated Database to v1.0.0
usernane Sep 27, 2025
ab525fc
chore: Updated HTTP to v4
usernane Sep 27, 2025
3ca49f4
test: Updated Dependencies
usernane Sep 27, 2025
ff05d95
chore: Updated Dependencies
usernane Sep 27, 2025
338e8d2
fix: Command Writer
usernane Sep 27, 2025
0c914de
fix: Fix Test Cases
usernane Sep 27, 2025
7166eb8
Update AbstractTask.php
usernane Sep 27, 2025
7311e20
Update TaskStatusEmail.php
usernane Sep 27, 2025
a140646
fix: References to Classes
usernane Sep 27, 2025
be14bdf
Update bootstrap.php
usernane Sep 27, 2025
1086336
fix: Fix Test Cases
usernane Sep 27, 2025
926eb85
Update ThemeLoader.php
usernane Sep 28, 2025
0350b6f
refactor: `ThemeLoader` to `ThemeManager`
usernane Sep 29, 2025
7f853fd
chore: Updated Database Library
usernane Sep 29, 2025
2fd17bb
refactor: Removal of `JSON_CONFIG_FILE_PATH`
usernane Sep 29, 2025
651ad14
test: Fix Test Cases
usernane Sep 29, 2025
a6a6e78
Delete NewTestTheme.php
usernane Oct 1, 2025
6864c23
fix: Theme Creation
usernane Oct 1, 2025
4698a23
Update phpunit10.xml
usernane Oct 1, 2025
3bd48a1
test: Refactor of CLI Tests
usernane Oct 1, 2025
5ff31ab
fix: Fixes and Tests Refactoring
usernane Oct 2, 2025
228ecb9
Update App.php
usernane Oct 2, 2025
253da71
Update CLIErrHandler.php
usernane Oct 2, 2025
65f1f00
Update AbstractTask.php
usernane Oct 2, 2025
f219db2
Update SchedulerCommandTest.php
usernane Oct 2, 2025
4ea9d01
Update SchedulerCommandTest.php
usernane Oct 2, 2025
dd1f5ea
Update SchedulerCommand.php
usernane Oct 2, 2025
1ea5891
Update TasksManager.php
usernane Oct 2, 2025
bf77b5a
Update bootstrap.php
usernane Oct 2, 2025
130a64d
Update TasksManager.php
usernane Oct 2, 2025
3c80893
fix: Tasks Names Check
usernane Oct 5, 2025
ef4e0d9
Update SchedulerCommandTest.php
usernane Oct 5, 2025
395e8d0
Update HelpCommandTest.php
usernane Oct 5, 2025
7b67d31
Update JsonDriver.php
usernane Oct 5, 2025
2342366
Update ThemeManager.php
usernane Oct 5, 2025
5931f4a
Update WebPage.php
usernane Oct 5, 2025
cd68b49
fix: Test Classes
usernane Oct 6, 2025
23cb8f7
Update UpdateSettingsCommandTest.php
usernane Oct 6, 2025
dd93f36
Update RunMigrationsCommand.php
usernane Oct 6, 2025
ce54748
fix: Migrations Command
usernane Oct 6, 2025
96238a2
Update DatabaseMigrationWriterTest.php
usernane Oct 6, 2025
07b5156
Update SessionTest.php
usernane Oct 6, 2025
a91d8fe
Update DatabaseMigrationWriterTest.php
usernane Oct 6, 2025
d7af006
Update DatabaseMigrationWriter.php
usernane Oct 6, 2025
e0c073b
Update LanguageTest.php
usernane Oct 6, 2025
4a64e25
Update SessionTest.php
usernane Oct 6, 2025
6537126
Update ListThemesCommandTest.php
usernane Oct 6, 2025
5635d14
Update AddCommandTest.php
usernane Oct 6, 2025
cd2780c
Update SchedulerCommandTest.php
usernane Oct 6, 2025
d66f33a
Update RouterUriTest.php
usernane Oct 6, 2025
7f773a9
Update SchedulerTaskTest.php
usernane Oct 6, 2025
5222493
Update SessionsManagerTest.php
usernane Oct 6, 2025
d41e784
Update ThemeTest.php
usernane Oct 6, 2025
21ea0c7
test: Fix Test Cases
usernane Oct 6, 2025
ea0673f
ci: Updated Workflows
usernane Oct 6, 2025
733ab6b
test: Updated Test Cases
usernane Oct 6, 2025
abe9de8
Update ThemeManager.php
usernane Oct 6, 2025
f78c6d5
fix: Test Cases
usernane Oct 6, 2025
e9f1025
fix: Theme Resources Creation
usernane Oct 6, 2025
1b6b28c
test: Fix Tests
usernane Oct 6, 2025
47b8762
Update CreateAPITestCaseTest.php
usernane Oct 6, 2025
b24ca94
Update CreateAPITestCase.php
usernane Oct 6, 2025
d3c384f
fix: API Creation
usernane Oct 6, 2025
74f762c
Update CreateAPITestCaseTest.php
usernane Oct 7, 2025
d3063dd
ci: Removed `--stop-on-failure`
usernane Oct 7, 2025
0ecc9e4
Update SchedulerCommandTest.php
usernane Oct 7, 2025
76c5f3f
test: Added MySQL Password
usernane Oct 7, 2025
a335953
Update RunMigrationsCommandTest.php
usernane Oct 7, 2025
3b347f9
Update RunMigrationsCommandTest.php
usernane Oct 7, 2025
2bc9cb8
Update RunMigrationsCommandTest.php
usernane Oct 7, 2025
f24d805
test: Fix PHPUnit Config
usernane Oct 7, 2025
850031f
Update SchedulerCommandTest.php
usernane Oct 7, 2025
0e0ea9b
Update SchedulerCommandTest.php
usernane Oct 7, 2025
c56b9bf
fix: Getting Arg Value in CLI
usernane Oct 7, 2025
6b26e2f
fix: Fix Test Case
usernane Oct 7, 2025
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
75 changes: 0 additions & 75 deletions .github/workflows/php80.yml

This file was deleted.

131 changes: 88 additions & 43 deletions .github/workflows/php81.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,99 @@ on:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10

env:
SA_SQL_SERVER_PASSWORD: ${{ secrets.SA_SQL_SERVER_PASSWORD }}
MYSQL_ROOT_PASSWORD: ${{ secrets.MYSQL_ROOT_PASSWORD }}

services:
sql.data:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
SA_PASSWORD: ${{ secrets.SA_PASSWORD }}
ACCEPT_EULA: Y
MSSQL_PID: Express
ports:
- "1433:1433"
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
SA_PASSWORD: ${{ secrets.SA_SQL_SERVER_PASSWORD }}
ACCEPT_EULA: Y
MSSQL_PID: Express
ports:
- "1433:1433"
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: ${{ secrets.MYSQL_ROOT_PASSWORD }}
MYSQL_DATABASE: testing_db
MYSQL_ROOT_HOST: '%'
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
fail-fast: true

name: Run PHPUnit Tests

steps:
- name: Clone Repo
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:9.5.20, composer

- name: Install ODBC Driver for SQL Server
run: |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
sudo apt update
sudo ACCEPT_EULA=Y apt install mssql-tools18 unixodbc-dev msodbcsql18

- name: Wait for SQL Server
run: |
for i in {1..12}; do
if /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P '${{ secrets.SA_SQL_SERVER_PASSWORD }}' -Q 'SELECT 1' -C > /dev/null 2>&1; then
echo "SQL Server is ready"
break
fi
echo "Waiting for SQL Server... ($i/12)"
sleep 10
done

- name: Create SQL Server Database
run: /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P '${{ secrets.SA_SQL_SERVER_PASSWORD }}' -Q 'create database testing_db' -C

- name: Setup MySQL Client
run: |
sudo apt update
sudo apt install mysql-client-core-8.0

- name: Wait for MySQL
run: |
until mysqladmin ping -h 127.0.0.1 --silent; do
echo 'waiting for mysql...'
sleep 1
done

- name: Create MySQL Database
run: |
mysql -h 127.0.0.1 -u root -p${{ secrets.MYSQL_ROOT_PASSWORD }} -e "CREATE DATABASE IF NOT EXISTS testing_db;"

- name: Shutdown Ubuntu MySQL
run: sudo service mysql stop

- name: Set up MySQL
uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: 'testing_db'
mysql root password: ${{ secrets.MYSQL_ROOT_PASSWORD }}
mysql user: 'root'
mysql password: ${{ secrets.MYSQL_ROOT_PASSWORD }}

- name: Wait for MySQL
run: |
while ! mysqladmin ping --host=127.0.0.1 --password=${{ secrets.MYSQL_ROOT_PASSWORD }} --silent; do
sleep 1
done

- name: Setup MSSQL
run: |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
sudo apt update
sudo apt install mssql-tools18
/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P ${{ secrets.SA_PASSWORD }} -Q 'create database testing_db' -C

- name: Run Tests
- name: Install Dependencies
run: composer install --prefer-source --no-interaction

uses: WebFiori/workflows/.github/workflows/test-php.yaml@main
with:
php-version: '8.1'

- name: Execute Tests
run: phpunit --configuration=tests/phpunit.xml --coverage-clover=clover.xml --verbose

- name: Rename coverage report
run: |
mv clover.xml php-8.1-coverage.xml

- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: php-8.1-coverage.xml

code-coverage:
name: Coverage
Expand All @@ -61,7 +109,4 @@ jobs:
php-version: '8.1'
coverage-file: 'php-8.1-coverage.xml'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}



CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Loading
Loading