-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from monofony/add-meta
Add meta
- Loading branch information
Showing
12 changed files
with
21 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,18 +50,12 @@ jobs: | |
${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }} | ||
|
||
- name: "Validate composer.json" | ||
run: (cd src/Cqrs && composer validate --no-check-version) | ||
|
||
- name: "Install dependencies" | ||
run: (cd src/Cqrs && composer update --no-interaction --no-scripts) | ||
|
||
- name: "Create test application" | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
(cd src/Cqrs && make create-test-application) | ||
(cd tests/Cqrs && make create-test-application) | ||
id: end-of-setup | ||
|
||
- name: "Run PHPUnit" | ||
run: (cd src/Cqrs && vendor/bin/phpunit) | ||
run: (cd tests/Cqrs/app && vendor/bin/phpunit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
package: | ||
- { name: 'Cqrs', path: 'cqrs-pack' } | ||
- { path: 'pack/cqrs-pack', name: 'cqrs-pack' } | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -27,9 +27,9 @@ jobs: | |
- name: Split of ${{ matrix.package.name }} | ||
uses: alphpaca/[email protected] | ||
with: | ||
package_path: 'src/${{ matrix.package.name }}' | ||
package_path: 'src/${{ matrix.package.pack }}' | ||
personal_access_token: ${{ secrets.MONOPLUS_PAT }} | ||
git_username: 'loic425' | ||
git_email: '[email protected]' | ||
repository_owner: "monofony" | ||
repository_name: "${{ matrix.package.path }}" | ||
repository_name: "${{ matrix.package.name }}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "monofony/cqrs-meta", | ||
"type": "metapackage", | ||
"license": "MIT", | ||
"description": "A meta package providing recipes for CQRS" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
{ | ||
"name": "monofony/cqrs-pack", | ||
"description": "Pack for CQRS", | ||
"type": "meta-package", | ||
"type": "symfony-pack", | ||
"license": "MIT", | ||
"require": { | ||
"php": "^8.3", | ||
"symfony/messenger": "*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^11.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
app |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
TEST_APP_BASENAME=app | ||
TEST_APP_DIR?=tests/${TEST_APP_BASENAME} | ||
TEST_APP_DIR?=${TEST_APP_BASENAME} | ||
|
||
.PHONY: create-test-application | ||
create-test-application: remove-test-application install-skeleton add-requirements copy-recipe copy-tests-resources | ||
|
||
.PHONY: remove-test-application | ||
remove-test-application: | ||
(cd tests && rm -rf ${TEST_APP_BASENAME}) | ||
rm -rf ${TEST_APP_BASENAME} | ||
|
||
.PHONY: install-skeleton | ||
install-skeleton: | ||
(cd tests && symfony new ${TEST_APP_BASENAME}) | ||
symfony new ${TEST_APP_BASENAME} | ||
|
||
.PHONY: add-requirements | ||
add-requirements: | ||
(cd ${TEST_APP_DIR} && composer require symfony/messenger) | ||
(cd ${TEST_APP_DIR} && composer require --dev phpunit/phpunit) | ||
(cd ${TEST_APP_BASENAME} && composer require symfony/messenger) | ||
(cd ${TEST_APP_BASENAME} && composer require --dev phpunit/phpunit) | ||
|
||
.PHONY: copy-recipe | ||
copy-recipe: | ||
cp -R ./../../monofony/cqrs-pack/0.1/* ${TEST_APP_DIR} | ||
|
||
.PHONY: copy-tests-resources | ||
copy-tests-resources: | ||
cp -R tests/Resources/* ${TEST_APP_DIR} | ||
cp -R resources/* ${TEST_APP_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.