Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Scoped] Sync PHP 7.0 scoped #6296

Merged
merged 1 commit into from
May 3, 2021
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
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