-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Started work on the next version of AntCMS (#86) * Started work on the next version of AntCMS * Allow the CI on any branch * Update ci.yml * Fixed deps for older PHP versions * Deps don't actually support PHP 8.4 yet * Added more typehints * Ported the main app to Flight (#88) * Ported the main app to Flight * Made PHPStan happy * Removed AntRouting * Renamed many internal classes * Caching related optimization * Skip the cache test * Update readme.md * Got the robots.txt and sitemap plugins working (#89) * More work for the next version (#90) * Speedup YAML with an in-memory cache layer * Cleanup * Auto cleanup the vendor folder * Improved the debug info * Update readme.md * Twig loader work for the rewrite (#91) * Slight optimization * Use an actual twig loader And some other general cleanup too * This test was for something I removed * Update readme.md * Code improvements, asset compression (#92) * Fixed asset compression & other changes (#93) * Fixed asset compression * Updated the readme, handled some other items Removed the old profile and admin plugins as I am not happy with how either of them previously worked and they will be rebuilt. I also updated the BS theme so it's now compatible with the new twig loader setup. * More prepwork (#94) * Added config options to control compression * Added some missing typhints * Adjustments to the debug info * Slight tweak to the page content * Minor renames, deleted an unused file * Fix the tests
- Loading branch information
1 parent
b4cb7eb
commit 9d3e155
Showing
76 changed files
with
2,349 additions
and
2,217 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,55 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [] | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php_version: [8.0, 8.1, 8.2, 8.3] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php_version }} | ||
tools: composer:v2 | ||
extensions: apcu | ||
|
||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install Dependencies | ||
run: composer install --no-interaction --prefer-dist --optimize-autoloader | ||
|
||
- run: cp ./tests/Includes/Config.yaml ./src/Config/Config.yaml | ||
|
||
- run: php src/Vendor/bin/phpunit tests | ||
|
||
PHPStan: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: php-actions/composer@v6 | ||
- uses: php-actions/phpstan@v3 | ||
with: | ||
configuration: phpstan.neon | ||
memory_limit: 256M | ||
version: latest |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
node_modules | ||
src/Cache/* | ||
src/Config/Config.yaml | ||
src/Config/Pages.yaml | ||
src/Config/Pages.yaml | ||
.php-cs-fixer.cache |
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,16 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in(__DIR__) | ||
->exclude([ | ||
'src/Vendor', | ||
'src/Cache', | ||
]) | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PSR12' => true, | ||
]) | ||
->setFinder($finder) | ||
; |
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
Oops, something went wrong.