[ci] try split of monorepo packages

This commit is contained in:
Tomas Votruba 2020-11-04 00:43:23 +01:00
parent 93b601cef0
commit 2cca77d376
2 changed files with 34 additions and 11 deletions

View 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

View File

@ -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"
-