Skip to content

Commit

Permalink
[Scoped] Sync PHP 7.0 scoped (#6296)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored May 3, 2021
1 parent ef5167c commit 233531c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build_scoped_rector_php70.yaml
Original file line number Diff line number Diff line change
@@ -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:
- '*'

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build/target-repository-php70/composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 233531c

Please sign in to comment.