From 1dbb6b750a495a27b7d6c21681e65f72ba7ac0de Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:02:13 +0000 Subject: [PATCH] build: simplify splitting (#43) --- .github/workflows/split.yml | 46 ++++++++++++------------------------- 1 file changed, 15 insertions(+), 31 deletions(-) diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index 49dd08f..ddcf8d3 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -18,32 +18,17 @@ jobs: strategy: fail-fast: false matrix: - # define package to repository map - package: - - - local_path: 'rekapager-bundle' - split_repository: 'rekapager-bundle' - - - local_path: 'rekapager-contracts' - split_repository: 'rekapager-contracts' - - - local_path: 'rekapager-core' - split_repository: 'rekapager-core' - - - local_path: 'rekapager-doctrine-collections-adapter' - split_repository: 'rekapager-doctrine-collections-adapter' - - - local_path: 'rekapager-doctrine-orm-adapter' - split_repository: 'rekapager-doctrine-orm-adapter' - - - local_path: 'rekapager-pagerfanta-adapter' - split_repository: 'rekapager-pagerfanta-adapter' - - - local_path: 'rekapager-keyset-pagination' - split_repository: 'rekapager-keyset-pagination' - - - local_path: 'rekapager-offset-pagination' - split_repository: 'rekapager-offset-pagination' + name: + - rekapager-api-platform + - rekapager-bundle + - rekapager-contracts + - rekapager-core + - rekapager-doctrine-collections-adapter + - rekapager-doctrine-orm-adapter + - rekapager-pagerfanta-adapter + - rekapager-keyset-pagination + - rekapager-offset-pagination + - rekapager-symfony-bridge steps: - uses: actions/checkout@v2 @@ -53,12 +38,11 @@ jobs: if: "!startsWith(github.ref, 'refs/tags/')" uses: "danharrin/monorepo-split-github-action@v2.3.0" with: - # ↓ split "packages/easy-coding-standard" directory - package_directory: 'packages/${{ matrix.package.local_path }}' + package_directory: 'packages/${{ matrix.name }}' # ↓ into https://github.com/symplify/easy-coding-standard repository repository_organization: 'rekalogika' - repository_name: '${{ matrix.package.split_repository }}' + repository_name: '${{ matrix.name }}' # [optional, with "github.com" as default] repository_host: github.com @@ -75,11 +59,11 @@ jobs: tag: ${GITHUB_REF#refs/tags/} # ↓ split "packages/easy-coding-standard" directory - package_directory: 'packages/${{ matrix.package.local_path }}' + package_directory: 'packages/${{ matrix.name }}' # ↓ into https://github.com/symplify/easy-coding-standard repository repository_organization: 'rekalogika' - repository_name: '${{ matrix.package.split_repository }}' + repository_name: '${{ matrix.name }}' # [optional, with "github.com" as default] repository_host: github.com