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

Do it CI/CD #108

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
f2ddb4e
Do it CI/CD
CB9TOIIIA Nov 17, 2024
09b41d7
fix for PHP version
CB9TOIIIA Nov 17, 2024
3c387ee
update php testes
CB9TOIIIA Nov 17, 2024
19053e4
update workflow
CB9TOIIIA Nov 17, 2024
bcd758d
fix tabs
CB9TOIIIA Nov 17, 2024
d15beac
fix tabs2
CB9TOIIIA Nov 17, 2024
d5286c7
fix cs
CB9TOIIIA Nov 17, 2024
d63861f
fix cs111
CB9TOIIIA Nov 17, 2024
a6bbc54
fix cs01
CB9TOIIIA Nov 17, 2024
5168f59
fixcs02
CB9TOIIIA Nov 17, 2024
91f4bcc
fix header
CB9TOIIIA Nov 17, 2024
5cebb15
fix head cs
CB9TOIIIA Nov 17, 2024
b4cba6f
fix cs03
CB9TOIIIA Nov 17, 2024
5433642
fix cs 04
CB9TOIIIA Nov 17, 2024
99d811e
fix cs model file sku CS
CB9TOIIIA Nov 17, 2024
1ee6b93
fix cs05
CB9TOIIIA Nov 17, 2024
d9635ac
tests cs
CB9TOIIIA Nov 17, 2024
21679ef
fix cs test 07
CB9TOIIIA Nov 17, 2024
e07b67c
test 07123
CB9TOIIIA Nov 17, 2024
daf6a91
fix cs
CB9TOIIIA Nov 17, 2024
721be98
fix cs
CB9TOIIIA Nov 17, 2024
a6d9584
fix cs
CB9TOIIIA Nov 17, 2024
c0dc8db
fix cs
CB9TOIIIA Nov 17, 2024
1040304
fix cs
CB9TOIIIA Nov 17, 2024
db565bc
fix cs
CB9TOIIIA Nov 17, 2024
d63c7de
fix cs
CB9TOIIIA Nov 17, 2024
f6e7f0a
fix cs
CB9TOIIIA Nov 17, 2024
2415aa9
fix cs
CB9TOIIIA Nov 17, 2024
97a3084
fix cs
CB9TOIIIA Nov 17, 2024
92bec8d
fix cs
CB9TOIIIA Nov 17, 2024
8ba4c16
fix cs
CB9TOIIIA Nov 17, 2024
5b1e7c2
fix cs
CB9TOIIIA Nov 17, 2024
6f35094
fix cs
CB9TOIIIA Nov 17, 2024
5dbb79f
cs fix
CB9TOIIIA Nov 17, 2024
2d27acc
fix cs
CB9TOIIIA Nov 17, 2024
1038674
fix cs
CB9TOIIIA Nov 17, 2024
4170b27
fix cs
CB9TOIIIA Nov 17, 2024
8176db8
fix cs
CB9TOIIIA Nov 17, 2024
3dc5d20
fix cs
CB9TOIIIA Nov 17, 2024
6cfc16f
fix cs
CB9TOIIIA Nov 17, 2024
7daa1b3
fix cs
CB9TOIIIA Nov 17, 2024
33af7e9
fix cs
CB9TOIIIA Nov 17, 2024
ea1af78
fix cs
CB9TOIIIA Nov 17, 2024
cb37b72
fix cs
CB9TOIIIA Nov 17, 2024
adc3b4f
fix cs
CB9TOIIIA Nov 17, 2024
d8e6193
fix cs
CB9TOIIIA Nov 17, 2024
1fd20d7
fix cs
CB9TOIIIA Nov 17, 2024
350845b
fix cs
CB9TOIIIA Nov 17, 2024
0d76fce
fix cs
CB9TOIIIA Nov 17, 2024
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
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
push:
branches: [develop]
pull_request:
branches: [develop]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, zip

- name: Install Composer
run: |
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

- name: Install dependencies (dev)
run: composer install --optimize-autoloader --no-interaction --no-progress

- name: Check for PHPUnit binary
run: ls -la vendor/bin/phpunit

- name: Run unit tests
run: vendor/bin/phpunit

- name: Build installer
run: |
mkdir -p ./build/files
cp -R ./src/packages ./build/files/packages
cp ./src/file.script.php ./build/files/file.script.php
cp ./src/pkg_jbzoo.xml ./build/files/pkg_jbzoo.xml
cp ./README.md ./build/files/README.md
cp ./LICENSE.md ./build/files/LICENSE.md
cd ./build/files
zip -r9q jbzoo_clean_install.zip *
mv ./build/files/jbzoo_clean_install.zip ./build/jbzoo_clean_install.zip
rm -rf ./build/files

- name: Build update package
run: |
mkdir -p ./build/files
cp -R ./src/packages ./build/files/packages
cp ./src/file.script.php ./build/files/file.script.php
cp ./src/pkg_jbzoo.xml ./build/files/pkg_jbzoo.xml
cp ./README.md ./build/files/README.md
cp ./LICENSE.md ./build/files/LICENSE.md
find ./build/files -name 'positions.config' -delete
find ./build/files -name 'positions.xml' -delete
find ./build/files -name 'metadata.xml' -delete
rm -rf ./build/files/packages/jbuniversal/jbuniversal/templates
cd ./build/files
zip -r9q jbzoo_update.zip *
mv ./build/files/jbzoo_update.zip ./build/jbzoo_update.zip
rm -rf ./build/files

- name: Cleanup project
run: rm -rf ./vendor/
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementCurrency
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class Element
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementEmail
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementPrice
* @since 2.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,11 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
use Joomla\String\StringHelper;

if (($html === '' || $html === null) && (!$this->isCore())) {
$html = $this->getJBPrice()->renderWarning('_warning.php', JText::_('JBZOO_PRICE_EDIT_ERROR_ADD_OPTIONS'));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementShipping
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementCurrencyCustom
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementEmailAttach
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementEmailDownload
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementEmailShopName
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementEmailSiteName
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementEmailTextArea
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?php
/**
* JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
* @package jbzoo
* @version 2.x Pro
* @author JBZoo App http://jbzoo.com
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @license http://jbzoo.com/license-pro.php JBZoo Licence
* @coder Denis Smetannikov <denis@jbzoo.com>
* JBZoo Application
*
* This file is part of the JBZoo CCK package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Application
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
*/

// no direct access
defined('_JEXEC') or die('Restricted access');


/**
* Class JBCartElementHookJBAdvert
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!--
JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
JBZoo Application

@package jbzoo
@version 2.x Pro
@author JBZoo App http://jbzoo.com
@copyright Copyright (C) JBZoo.com, All rights reserved.
@license http://jbzoo.com/license-pro.php JBZoo Licence
@coder Denis Smetannikov <denis@jbzoo.com>
This file is part of the JBZoo CCK package.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

@package Application
@license GPL-2.0
@copyright Copyright (C) JBZoo.com, All rights reserved.
@link https://github.com/JBZoo/JBZoo
-->
<element type="element" group="Core" hidden="false">
<name>addcomment</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
use Joomla\String\StringHelper;
/**
* JBZoo Application
*
Expand All @@ -11,12 +10,11 @@
* @license GPL-2.0
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/JBZoo
* @author Denis Smetannikov <denis@jbzoo.com>
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;
/**
* Class JBCartElementHookBoxberryOrder
*/
Expand Down
Loading
Loading