File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,22 @@ jobs:
5555 with :
5656 fetch-depth : 0
5757
58+ - name : Check existence of composer.json & phpunit.xml.dist files
59+ id : check_files
60+ uses : andstor/file-existence-action@v3
61+ with :
62+ files : " composer.json, phpunit.xml.dist, phpunit.xml"
63+
5864 - name : Composer setup
5965 uses : Humanoidfr/humanoid-github-workflows/.github/actions/composer@main
6066 with :
6167 PHP_VERSION : ${{ inputs.PHP_VERSION }}
6268 COMPOSER_CONFIG : ${{ vars.COMPOSER_CONFIG_JSON }}
6369
6470 - name : Set up problem matchers for PHPUnit
71+ if : steps.check_files.outputs.files_exists == 'true'
6572 run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
6673
6774 - name : Run PHPUnit
75+ if : steps.check_files.outputs.files_exists == 'true'
6876 run : ./vendor/bin/phpunit ${{ inputs.PHPUNIT_ARGS }}
You can’t perform that action at this time.
0 commit comments