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

[docs] apply correct standard on dumper Rector list + apply automated CI commit on propagate monorepo deps #4481

Merged
merged 6 commits into from
Oct 25, 2020
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
8 changes: 0 additions & 8 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ jobs:
bin/rector validate-fixture-content --ansi
bin/rector validate-fixture-suffix --ansi

-
name: 'Sync Annotation Parser'
run: bin/rector sync-annotation-parser --dry-run --ansi

-
name: 'Validate Sets Loading'
# this is very slow, so it has to be in own workflow
Expand All @@ -55,10 +51,6 @@ jobs:
name: 'PHP Linter'
run: vendor/bin/parallel-lint src tests packages --exclude packages/rector-generator/templates

-
name: 'Validate Monorepo'
run: composer validate-monorepo

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest

Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/sync_annotation_parser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Sync Annotation Parser

on:
pull_request: null

jobs:
sync_annotatoin_parser:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v1
with:
php-version: 7.4
coverage: none
tools: composer:v1

- run: composer install --no-progress --ansi

# write
- run: bin/rector sync-annotation-parser --ansi

-
uses: EndBug/add-and-commit@v5
with:
add: 'packages'
message: '[ci-review] sync doctrine/annotations parser'
env:
# to get push access
token: ${{ secrets.ACCESS_TOKEN }}

- run: bin/rector sync-annotation-parser --dry-run --ansi
35 changes: 35 additions & 0 deletions .github/workflows/validate_monorepo_propagate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Validate Monorepo and Propagate

on:
pull_request: null

jobs:
validate_monorepo_and_propagate:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v1
with:
php-version: 7.4
coverage: none
tools: composer:v1

- run: composer install --no-progress --ansi

# write
- run: composer propagate

-
uses: EndBug/add-and-commit@v5
with:
# The arguments for the `git add` command (see the paragraph below for more info)
add: 'packages'
message: '[ci-review] propagate monorepo dependencies'
env:
# to get push access
token: ${{ secrets.ACCESS_TOKEN }}

- run: composer validate-monorepo
29 changes: 15 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"symfony/finder": "^4.4.8|^5.1",
"symfony/http-kernel": "^4.4.8|^5.1",
"symfony/process": "^4.4.8|^5.1",
"symplify/autowire-array-parameter": "^8.3.45",
"symplify/composer-json-manipulator": "^8.3.45",
"symplify/console-color-diff": "^8.3.45",
"symplify/easy-testing": "^8.3.45",
"symplify/package-builder": "^8.3.45",
"symplify/set-config-resolver": "^8.3.45",
"symplify/smart-file-system": "^8.3.45",
"symplify/autowire-array-parameter": "^8.3.47",
"symplify/composer-json-manipulator": "^8.3.47",
"symplify/console-color-diff": "^8.3.47",
"symplify/easy-testing": "^8.3.47",
"symplify/package-builder": "^8.3.47",
"symplify/set-config-resolver": "^8.3.47",
"symplify/smart-file-system": "^8.3.47",
"webmozart/assert": "^1.9"
},
"require-dev": {
Expand All @@ -65,11 +65,11 @@
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpunit/phpunit": "^8.5|^9.2",
"psr/event-dispatcher": "^1.0",
"symplify/changelog-linker": "^8.3.45",
"symplify/easy-coding-standard": "^8.3.45",
"symplify/easy-testing": "^8.3.45",
"symplify/monorepo-builder": "^8.3.45",
"symplify/phpstan-extensions": "^8.3.45",
"symplify/changelog-linker": "^8.3.47",
"symplify/easy-coding-standard": "^8.3.47",
"symplify/easy-testing": "^8.3.47",
"symplify/monorepo-builder": "^8.3.47",
"symplify/phpstan-extensions": "^8.3.47",
"thecodingmachine/phpstan-strict-rules": "^0.12",
"tracy/tracy": "^2.7"
},
Expand Down Expand Up @@ -316,11 +316,11 @@
],
"check-cs": [
"vendor/bin/ecs check --ansi",
"vendor/bin/ecs check-markdown README.md docs/rector_rules_overview.md --ansi"
"vendor/bin/ecs check-markdown README.md --ansi"
],
"fix-cs": [
"vendor/bin/ecs check --fix --ansi",
"vendor/bin/ecs check-markdown README.md docs/rector_rules_overview.md --fix --ansi"
"vendor/bin/ecs check-markdown README.md --fix --ansi"
],
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"phpstan-config": "vendor/bin/phpstan analyse config --ansi --error-format symplify",
Expand All @@ -331,6 +331,7 @@
],
"docs": [
"bin/rector dump-rectors --output-file docs/rector_rules_overview.md --ansi",
"vendor/bin/ecs check-markdown docs/rector_rules_overview.md --ansi --fix",
"bin/rector dump-nodes --output-file docs/nodes_overview.md --ansi"
],
"rector-ci": "bin/rector process --config rector-ci.php --dry-run --ansi",
Expand Down
Loading