mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 17:00:51 +00:00
[ci] try split of monorepo packages
This commit is contained in:
parent
93b601cef0
commit
2cca77d376
34
.github/workflows/monorepo_split_packages.yaml
vendored
Normal file
34
.github/workflows/monorepo_split_packages.yaml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Monorepo Split Packages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
monorepo_split_packages:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
package_name:
|
||||
- simple-php-doc-parser
|
||||
- symfony-php-config
|
||||
|
||||
name: Monorepo Split of ${{ matrix.package_name }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# https://github.com/cpina/github-action-push-to-another-repository
|
||||
-
|
||||
uses: cpina/github-action-push-to-another-repository@master
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.ACCESS_TOKEN }}
|
||||
with:
|
||||
source-directory: 'packages/${{ matrix.package_name }}'
|
||||
destination-github-username: 'rector'
|
||||
destination-repository-name: '${{ matrix.package_name }}'
|
||||
user-email: tomas@getrector.org
|
||||
target-branch: master
|
11
.travis.yml
11
.travis.yml
|
@ -16,17 +16,6 @@ before_install:
|
|||
- composer self-update --1
|
||||
jobs:
|
||||
include:
|
||||
# -
|
||||
# name: "Split Monorepo"
|
||||
# script: |
|
||||
# composer update --ansi
|
||||
#
|
||||
# if [ "${TRAVIS_TAG}" != "" ]; then
|
||||
# vendor/bin/monorepo-builder split --max-processes 6 --tag "${TRAVIS_TAG}" --ansi
|
||||
# else
|
||||
# vendor/bin/monorepo-builder split --max-processes 6 --ansi
|
||||
# fi
|
||||
|
||||
# inspired by https://github.com/phpstan/phpstan-src/blob/088b9fab470632cea07f08a936fb0923a59b2ecb/.travis.yml#L47-L59
|
||||
# "Deploy to https://github.com/rectorphp/rector-prefixed"
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue
Block a user