-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Maintenance] Replace test-package.sh with native GH Actions
#13515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fe21dd2
0712538
d3c9a87
b8fb089
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,10 +7,12 @@ on: | |||||||||
| paths: | ||||||||||
| - "src/Sylius/Bundle/**" | ||||||||||
| - "src/Sylius/Component/**" | ||||||||||
| - ".github/workflows/packages.yml" | ||||||||||
| pull_request: | ||||||||||
| paths: | ||||||||||
| - "src/Sylius/Bundle/**" | ||||||||||
| - "src/Sylius/Component/**" | ||||||||||
| - ".github/workflows/packages.yml" | ||||||||||
| release: | ||||||||||
| types: [created] | ||||||||||
| schedule: | ||||||||||
|
|
@@ -99,8 +101,35 @@ jobs: | |||||||||
| working-directory: "src/Sylius/${{ matrix.package }}" | ||||||||||
|
|
||||||||||
| - | ||||||||||
| name: Test package | ||||||||||
| run: bin/test-package src/Sylius/${{ matrix.package }} | ||||||||||
| name: Setup Database(for ApiBundle only) | ||||||||||
| working-directory: "src/Sylius/${{ matrix.package }}" | ||||||||||
| run: test/bin/console doctrine:schema:update --force -e test | ||||||||||
|
vvasiloi marked this conversation as resolved.
|
||||||||||
| if: always() && matrix.package == 'Bundle/ApiBundle' | ||||||||||
|
|
||||||||||
| - | ||||||||||
| name: Run PHPSpec | ||||||||||
| working-directory: "src/Sylius/${{ matrix.package }}" | ||||||||||
| run: vendor/bin/phpspec run --ansi --no-interaction -f dot | ||||||||||
|
|
||||||||||
| - | ||||||||||
| name: Check the existance of phpunit.xml.dist | ||||||||||
| id: phpunit_xml_dist_existance_check | ||||||||||
|
Comment on lines
+115
to
+116
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| uses: andstor/file-existence-action@v1 | ||||||||||
| with: | ||||||||||
| files: "src/Sylius/${{ matrix.package }}/phpunit.xml.dist" | ||||||||||
|
|
||||||||||
| - | ||||||||||
| name: Check the existance of phpunit.xml | ||||||||||
| id: phpunit_xml_existance_check | ||||||||||
|
Comment on lines
+122
to
+123
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| uses: andstor/file-existence-action@v1 | ||||||||||
| with: | ||||||||||
| files: "src/Sylius/${{ matrix.package }}/phpunit.xml" | ||||||||||
|
|
||||||||||
| - | ||||||||||
| name: Run PHPUnit | ||||||||||
| working-directory: "src/Sylius/${{ matrix.package }}" | ||||||||||
| if: steps.phpunit_xml_dist_existance_check.outputs.files_exists == 'true' || steps.phpunit_xml_existance_check.outputs.files_exists == 'true' | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| run: vendor/bin/phpunit --colors=always | ||||||||||
|
|
||||||||||
| notify-about-build-failure: | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
|
|
||||||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before
(😄 💃