Skip to content

Commit

Permalink
chore: enable Gitsplit (#120)
Browse files Browse the repository at this point in the history
* fix: gitsplit settings

* chore: enable Gitsplit GH action

* chore: enable Gitsplit GH action

* chore: enable Gitsplit GH action
  • Loading branch information
dkarlovi authored Mar 4, 2021
1 parent d85cb2a commit f9d5250
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 20 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,45 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ["7.3", "7.4", "8.0"]
dependencies: [lowest, highest]
php: [ "7.3", "7.4", "8.0" ]
dependencies: [ lowest, highest ]
steps:
- uses: actions/checkout@master
- name: Composer install lowest dependencies
-
uses: actions/checkout@master
-
name: Composer install lowest dependencies
if: "matrix.dependencies == 'lowest'"
run: make composer-bare-install-lowest
- name: Composer install highest dependencies
-
name: Composer install highest dependencies
if: "matrix.dependencies == 'highest'"
run: make composer-bare-install
- name: Tests without mutation
-
name: Tests without mutation
if: "matrix.php == '7.3'"
run: make phpunit-coverage
- name: Tests with mutation
-
name: Tests with mutation
if: "matrix.php != '7.3'"
run: make test
CodeQualityAnalysis:
container: jakzal/phpqa:1.52-php7.4-alpine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Composer install highest dependencies
-
uses: actions/checkout@master
-
name: Composer install highest dependencies
run: make composer-bare-install
- name: Run code quality analysis
-
name: Run code quality analysis
run: make check
DocumentationQualityAnalysis:
container: dkarlovi/docqa:latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run documentation quality analysis
-
uses: actions/checkout@master
-
name: Run documentation quality analysis
run: make doc
23 changes: 23 additions & 0 deletions .github/workflows/gitsplit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Monorepo split
on:
push:
branches:
- "fix/gitsplit"
- "master"
release:
types: [ published ]

jobs:
gitsplit:
runs-on: ubuntu-latest
steps:
-
name: Full checkout
run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY /home/runner/work/xezilaires-dev/xezilaires-dev && cd /home/runner/work/xezilaires-dev/xezilaires-dev && git checkout $GITHUB_SHA
-
name: Split repositories
uses: docker://jderusse/gitsplit:latest
with:
args: gitsplit
env:
GH_TOKEN: ${{ secrets.GITSPLIT_TOKEN }}
22 changes: 14 additions & 8 deletions .gitsplit.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
splits:
- prefix: "src/Xezilaires"
target: "[email protected]:sigwinhq/xezilaires.git"
- prefix: "src/Bridge/PhpSpreadsheet"
target: "[email protected]:sigwinhq/xezilaires-phpspreadsheet.git"
- prefix: "s.rc/Bridge/Spout"
target: "[email protected]:sigwinhq/xezilaires-spout.git"
- prefix: "src/Bridge/Symfony"
target: "[email protected]:sigwinhq/xezilaires-symfony.git"
-
prefix: "src/Xezilaires"
target: "https://${GH_TOKEN}@github.com/sigwinhq/xezilaires.git"
-
prefix: "src/Bridge/PhpSpreadsheet"
target: "https://${GH_TOKEN}@github.com/sigwinhq/xezilaires-phpspreadsheet.git"
-
prefix: "src/Bridge/Spout"
target: "https://${GH_TOKEN}@github.com/sigwinhq/xezilaires-spout.git"
-
prefix: "src/Bridge/Symfony"
target: "https://${GH_TOKEN}@github.com/sigwinhq/xezilaires-symfony.git"
origins:
- ^master$

0 comments on commit f9d5250

Please sign in to comment.