Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish preparation: github actions #1

Merged
merged 5 commits into from
Dec 17, 2024
Merged
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
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
Loading