Skip to content

Commit

Permalink
Merge pull request #1 from prosopo/main
Browse files Browse the repository at this point in the history
publish preparation: github actions
  • Loading branch information
light-source authored Dec 17, 2024
2 parents 7fe5036 + d828a69 commit 58082ae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,25 @@ jobs:
php-version: '8.2'
extensions: mbstring, opcache

- name: Install Composer
run: |
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
- name: Install composer packages for code-quality
run: cd ${{ github.workspace }}/code-quality; composer install

- name: Validate code style with PHP Code Sniffer
run: composer phpcs
run: cd ${{ github.workspace }}/code-quality; composer phpcs

- name: Perform static code analysis with PHPStan
run: composer phpstan
run: cd ${{ github.workspace }}/code-quality; composer phpstan

- name: Generate package autoloader files
run: cd ${{ github.workspace }}; composer install

- name: Install composer packages for tests
run: cd ${{ github.workspace }}/tests; composer install

- name: Run Pest tests
run: composer pest
run: cd ${{ github.workspace }}/tests; composer pest
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Prosopo\Views\PrivateClasses\Template;

use Exception;
use Prosopo\Views\Interfaces\Model\ModelRendererInterface;
use Prosopo\Views\Interfaces\Model\TemplateModelInterface;
use Prosopo\Views\Interfaces\Template\TemplateRendererInterface;
Expand Down Expand Up @@ -49,7 +50,8 @@ function ($item) {
* @param mixed $item
*
* @return mixed
* @throws
*
* @throws Exception
*/
protected function renderIfModel($item)
{
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ built-in [Blade](https://laravel.com/docs/11.x/blade) implementation as a defaul

* Zero Dependencies: Lightweight and easy to integrate into any project.
* Wide Compatibility: PHP 7.4+, 8.0+
* Adherence to the [SOLID principles](https://en.wikipedia.org/wiki/SOLID): You can override any module without
affecting the rest of the system.
* Adherence to the [SOLID principles](https://en.wikipedia.org/wiki/SOLID): The architecture allows you to easily
override any module to meet specific requirements.
* Namespace Support: Manage different templates seamlessly under a unified structure.
* Test Coverage: Covered by [Pest](https://pestphp.com/) Unit and Feature tests.
* Static Analysis: Checked by [PHPStan](https://phpstan.org/).
Expand Down

0 comments on commit 58082ae

Please sign in to comment.