Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nenes25 committed Dec 9, 2019
2 parents c9227f3 + df1e046 commit 1e8ec7b
Show file tree
Hide file tree
Showing 17 changed files with 1,802 additions and 35 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PHP tests
on: [pull_request]
jobs:
php-cs-fixer:
name: PHP CS FIXER (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.2']
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Install Composer dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Run CS Fixer
run: php vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no --diff-format udiff
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor
.php_cs.cache

/config_*.xml
11 changes: 11 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

$config = new PrestaShop\CodingStandards\CsFixer\Config();

$config
->setUsingCache(true)
->getFinder()
->in(__DIR__)
->exclude('vendor');

return $config;
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ cd modules
git clone https://github.com/friends-of-presta/fop_console.git
composer install
cd ..
php bin/console pr:mo install console
php bin/console pr:mo install fop_console
```

## Current commands

* `fop:console:debug:mode` change debug mode
* `fop:console:maintenance` get status or change maintenance mode, list or add maintenance ip address
* `fop:console:shop-status` Display shop(s) status(es)
* `fop:console:export`: Exports object models in XML;
* `fop:console:latest-products`: Displays the latest products;
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "friends-of-prestashop/console",
"description": "A better Console for PrestaShop 1.7",
"description": "Add some console commands for PrestaShop 1.7.5+",
"authors": [
{
"name": "Mickaël Andrieu",
Expand All @@ -20,5 +20,8 @@
"php": "^7.1"
},
"license": "MIT",
"type": "prestashop-module"
"type": "prestashop-module",
"require-dev": {
"prestashop/php-dev-tools": "^2.2"
}
}

0 comments on commit 1e8ec7b

Please sign in to comment.