Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename steps and fix paths
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Apr 5, 2022
commit a8eca1e854dd1b305758d20f9feeb4c01dec5c81
16 changes: 8 additions & 8 deletions workflow-templates/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,27 +76,27 @@ jobs:
./occ app:enable --force ${{ env.APP_NAME }}
php -S localhost:8080 &

- name: Check file existence
id: check_files
- name: Check PHPUnit config file existence
id: check_phpunit
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_CONFIG }}

- name: PHPUnit
# Only run if phpunit config file exists
if: steps.check_files.outputs.files_exists == 'true'
if: steps.check_phpunit.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_CONFIG }}

- name: Check integration file existence
id: check_files_integration
- name: Check PHPUnit integration config file existence
id: check_integration
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_INTEGRATION_CONFIG }}

- name: PHPUnit integration
# Only run if phpunit integration config file exists
if: steps.check_files_integration.outputs.files_exists == 'true'
if: steps.check_integration.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_INTEGRATION_CONFIG }}

Expand Down
16 changes: 8 additions & 8 deletions workflow-templates/phpunit-oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,27 @@ jobs:
./occ app:enable --force ${{ env.APP_NAME }}
php -S localhost:8080 &

- name: Check file existence
id: check_files
- name: Check PHPUnit config file existence
id: check_phpunit
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_CONFIG }}

- name: PHPUnit
# Only run if phpunit config file exists
if: steps.check_files.outputs.files_exists == 'true'
if: steps.check_phpunit.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_CONFIG }}

- name: Check integration file existence
id: check_files_integration
- name: Check PHPUnit integration config file existence
id: check_integration
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_INTEGRATION_CONFIG }}

- name: PHPUnit integration
# Only run if phpunit integration config file exists
if: steps.check_files_integration.outputs.files_exists == 'true'
if: steps.check_integration.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_INTEGRATION_CONFIG }}

Expand Down
16 changes: 8 additions & 8 deletions workflow-templates/phpunit-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,27 @@ jobs:
./occ app:enable --force ${{ env.APP_NAME }}
php -S localhost:8080 &

- name: Check file existence
id: check_files
- name: Check PHPUnit config file existence
id: check_phpunit
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_CONFIG }}

- name: PHPUnit
# Only run if phpunit config file exists
if: steps.check_files.outputs.files_exists == 'true'
if: steps.check_phpunit.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_CONFIG }}

- name: Check integration file existence
id: check_files_integration
- name: Check PHPUnit integration config file existence
id: check_integration
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_INTEGRATION_CONFIG }}

- name: PHPUnit integration
# Only run if phpunit integration config file exists
if: steps.check_files_integration.outputs.files_exists == 'true'
if: steps.check_integration.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_INTEGRATION_CONFIG }}

Expand Down
16 changes: 8 additions & 8 deletions workflow-templates/phpunit-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,27 @@ jobs:
./occ app:enable --force ${{ env.APP_NAME }}
php -S localhost:8080 &

- name: Check file existence
id: check_files
- name: Check PHPUnit config file existence
id: check_phpunit
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_CONFIG }}

- name: PHPUnit
# Only run if phpunit config file exists
if: steps.check_files.outputs.files_exists == 'true'
if: steps.check_phpunit.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_CONFIG }}

- name: Check integration file existence
id: check_files_integration
- name: Check PHPUnit integration config file existence
id: check_integration
uses: andstor/file-existence-action@v1
with:
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
files: apps/${{ env.APP_NAME }}/${{ env.PHPUNIT_INTEGRATION_CONFIG }}

- name: PHPUnit integration
# Only run if phpunit integration config file exists
if: steps.check_files_integration.outputs.files_exists == 'true'
if: steps.check_integration.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: ./vendor/phpunit/phpunit/phpunit -c ${{ env.PHPUNIT_INTEGRATION_CONFIG }}

Expand Down