From 1646e7c8c12c08a806cce505d4d59b75643fadad Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 3 May 2021 13:56:48 +0700 Subject: [PATCH] [Scoped] Sync PHP 7.0 scoped --- .github/workflows/build_scoped_rector_php70.yaml | 11 +++++------ build/target-repository-php70/composer.json | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_scoped_rector_php70.yaml b/.github/workflows/build_scoped_rector_php70.yaml index 56c42e9cb529..295fe872e66e 100644 --- a/.github/workflows/build_scoped_rector_php70.yaml +++ b/.github/workflows/build_scoped_rector_php70.yaml @@ -1,11 +1,11 @@ -# builds the content of https://github.com/rectorphp/rector-prefixed +# builds the content of https://github.com/rectorphp/rector-prefixed-php70 # inspiration from https://github.com/phpstan/phpstan-src/blob/master/.github/workflows/phar.yml name: Build Scoped Rector PHP 7.0 on: push: branches: - - never + - main tags: - '*' @@ -33,12 +33,11 @@ jobs: COMPOSER_TOKEN: ${{ secrets.ACCESS_TOKEN }} # install only prod dependencies - do not use ramsey, it uses cache including "dev", we want to avoid it here - - run: | - composer install --no-dev --ansi - composer require composer/composer + - run: composer install --no-dev --ansi - # 1. (a) copy files to $NESTED_DIRECTORY directory Exclude the scoped/nested directories to prevent rsync from copying in a loop + # 1. copy files to $NESTED_DIRECTORY directory Exclude the scoped/nested directories to prevent rsync from copying in a loop - run: rsync --exclude rector-build-php70 -av * rector-build-php70 --quiet + - run: rm -rf rector-build-php70/packages-tests rector-build-php70/rules-tests rector-build-php70/tests # 2. downgrade rector - run: sh build/downgrade-rector-php70.sh rector-build-php70 diff --git a/build/target-repository-php70/composer.json b/build/target-repository-php70/composer.json index e8c049ee74ed..0979bc9a5c3b 100644 --- a/build/target-repository-php70/composer.json +++ b/build/target-repository-php70/composer.json @@ -1,5 +1,5 @@ { - "name": "rector/rector-prefixed", + "name": "rector/rector-prefixed-php70", "description": "Prefixed and PHP 7.0 downgraded version of rector/rector", "license": "MIT", "bin": [