[e2e] Remove global e2e test on scoped (#1783)

This commit is contained in:
Abdul Malik Ikhsan 2022-02-09 04:43:20 +07:00 committed by GitHub
parent 20351c5d12
commit de8ebd038e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 84 deletions

View File

@ -1,40 +0,0 @@
name: End to End global tests
on:
pull_request: null
push:
branches:
- main
jobs:
end_to_end:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
directory:
- 'e2e/global-install'
name: End to end test - ${{ matrix.directory }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none
# wait for deploy to packagist
- run: sleep 70
-
run: |
composer global require --dev rector/rector:dev-main
composer install --ansi
working-directory: ${{ matrix.directory }}
-
run: rector process --ansi --clear-cache
working-directory: ${{ matrix.directory }}

View File

@ -1 +0,0 @@
/vendor

View File

@ -1,7 +0,0 @@
<?php
namespace App;
interface ExceptionInterface
{
}

View File

@ -1,8 +0,0 @@
{
"autoload": {
"psr-4": {
"App\\": "App",
"GlobalInstall\\": "src"
}
}
}

View File

@ -1,15 +0,0 @@
<?php
declare(strict_types=1);
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
use Rector\Core\Configuration\Option;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [__DIR__ . '/src/']);
$services = $containerConfigurator->services();
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
};

View File

@ -1,13 +0,0 @@
<?php
namespace GlobalInstall;
use App\ExceptionInterface;
class MyException extends \RuntimeException implements ExceptionInterface
{
public static function forAnything(string $content)
{
return new static($content);
}
}