Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

feat : adding github actions #140

Merged
merged 5 commits into from
Oct 24, 2019
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
15 changes: 15 additions & 0 deletions .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Coding Standard

on: [push, pull_request]

jobs:
php-cs-fixer:
name: 'PHP-CS-Fixer'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: 7.2
- run: composer global require narrowspark/coding-standard && composer cs-check
14 changes: 14 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Coding Standard

on: [push, pull_request]

jobs:
text-lint:
name: 'Markdown lint'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.16.0'
- run: npm install
- run: npm run lint
12 changes: 11 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<?php
use Narrowspark\CS\Config\Config;

$config = new Config(null, [
$header = <<<'EOF'
This file is part of Narrowspark Framework.

(c) Daniel Bannert <[email protected]>

This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;

$config = new Config($header, [
'native_function_invocation' => [
'exclude' => [
'getcwd',
Expand All @@ -12,6 +21,7 @@ $config = new Config(null, [
'final_class' => false,
'PhpCsFixerCustomFixers/no_commented_out_code' => false,
]);

$config->getFinder()
->files()
->in(__DIR__)
Expand Down
18 changes: 0 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,6 @@ jobs:
php: nightly
env: PHPUNIT=true SETUP=high REMOVE_XDEBUG=true COMPOSER_VERSION=1.9.0

- stage: Coding standard
php: 7.2
env: SETUP=high REMOVE_XDEBUG=true COMPOSER_VERSION=1.9.0
script:
- composer cs-check

- stage: Coding standard
php: 7.2
before_install:
- nvm install
- nvm use
install:
- npm install
before_script:
- echo "skip"
script:
- npm run lint

- stage: Static Analysis
php: 7.2
env: REMOVE_XDEBUG=false SETUP=high COMPOSER_VERSION=1.9.0
Expand Down
4 changes: 4 additions & 0 deletions build/travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ if [[ "$PHPUNIT" = true ]]; then
TESTSUITE="Narrowspark Automatic Test Suite";
elif [[ "$TYPE" = "Common" ]]; then
TESTSUITE="Narrowspark Automatic Common Test Suite";
elif [[ "$TYPE" = "Prefetcher" ]]; then
TESTSUITE="Narrowspark Automatic Prefetcher Test Suite";
elif [[ "$TYPE" = "Security" ]]; then
TESTSUITE="Narrowspark Automatic Security Test Suite";
fi
Expand All @@ -23,4 +25,6 @@ if [[ "$PHPUNIT" = true ]]; then
}
fi
done

tfold "Narrowspark Automatic Internal Test Suite" "$TEST -c ./phpunit.xml.dist --testsuite=\"Narrowspark Automatic Internal Test Suite\"";
fi
9 changes: 9 additions & 0 deletions src/Automatic/AbstractConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic;

use Composer\Composer;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Automatic.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic;

use Composer\Command\GlobalCommand;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic;

use Narrowspark\Automatic\Common\Contract\Configurator as ConfiguratorContract;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Configurator;

use Composer\Composer;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Configurator/ComposerScriptsConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Configurator;

use Composer\Composer;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Configurator/CopyFromPackageConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Configurator;

use Narrowspark\Automatic\Common\Configurator\AbstractConfigurator;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Configurator/EnvConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Configurator;

use Narrowspark\Automatic\Common\Configurator\AbstractConfigurator;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Configurator/GitIgnoreConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Configurator;

use Narrowspark\Automatic\Common\Configurator\AbstractConfigurator;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Configurator/Traits/AppendToFileTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Configurator\Traits;

use Symfony\Component\Filesystem\Exception\IOException;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic;

use Composer\Composer;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Contract/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Contract;

use Narrowspark\Automatic\Common\Contract\Package as PackageContract;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Contract/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Contract;

use Composer\DependencyResolver\Operation\OperationInterface;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Contract/PackageConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Contract;

interface PackageConfigurator extends Configurator
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Installer/AbstractInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Installer;

use Composer\Composer;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Installer/ConfiguratorInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Installer;

use Composer\Package\PackageInterface;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Installer/InstallationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Installer;

use Composer\Factory;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Installer/SkeletonInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic\Installer;

use Composer\Package\PackageInterface;
Expand Down
9 changes: 9 additions & 0 deletions src/Automatic/Lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Narrowspark\Automatic;

use Composer\Json\JsonFile;
Expand Down
Loading