Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8fb089

Browse files
committed
[Maintenance] Execute PHPUnit only if its config exists
1 parent d3c9a87 commit b8fb089

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/packages.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,24 @@ jobs:
111111
working-directory: "src/Sylius/${{ matrix.package }}"
112112
run: vendor/bin/phpspec run --ansi --no-interaction -f dot
113113

114+
-
115+
name: Check the existance of phpunit.xml.dist
116+
id: phpunit_xml_dist_existance_check
117+
uses: andstor/file-existence-action@v1
118+
with:
119+
files: "src/Sylius/${{ matrix.package }}/phpunit.xml.dist"
120+
121+
-
122+
name: Check the existance of phpunit.xml
123+
id: phpunit_xml_existance_check
124+
uses: andstor/file-existence-action@v1
125+
with:
126+
files: "src/Sylius/${{ matrix.package }}/phpunit.xml"
127+
114128
-
115129
name: Run PHPUnit
116130
working-directory: "src/Sylius/${{ matrix.package }}"
131+
if: steps.phpunit_xml_dist_existance_check.outputs.files_exists == 'true' || steps.phpunit_xml_existance_check.outputs.files_exists == 'true'
117132
run: vendor/bin/phpunit --colors=always
118133

119134
notify-about-build-failure:

0 commit comments

Comments
 (0)