diff options
author | Joas Schilling <coding@schilljs.com> | 2022-09-19 21:20:05 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-09-19 21:20:05 +0300 |
commit | 4e3dbff7848a8d7848c2c01b5add5b8848c74788 (patch) | |
tree | e85ca15f87427e9a1061c3d4fa3edd73f815973f | |
parent | 45ad1ee8ff8f9874cb67cdb60da5f5f52bd59e85 (diff) |
Make composer optional
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | .github/workflows/phpunit-sqlite.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index 58422b6..9a86fea 100644 --- a/.github/workflows/phpunit-sqlite.yml +++ b/.github/workflows/phpunit-sqlite.yml @@ -56,7 +56,15 @@ jobs: extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite coverage: none + - name: Check composer file existence + id: check_composer + uses: andstor/file-existence-action@v1 + with: + files: apps/${{ env.APP_NAME }}/composer.json + - name: Set up PHPUnit + # Only run if phpunit config file exists + if: steps.check_composer.outputs.files_exists == 'true' working-directory: apps/${{ env.APP_NAME }} run: composer i |