Skip to content

Commit 90e72ff

Browse files
committed
Improve naming and fix working dir
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent f0daec0 commit 90e72ff

File tree

4 files changed

+32
-24
lines changed

4 files changed

+32
-24
lines changed

.github/workflows/phpunit-mysql.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,27 +76,29 @@ jobs:
7676
./occ app:enable --force ${{ env.APP_NAME }}
7777
php -S localhost:8080 &
7878
79-
- name: Check file existence
80-
id: check_files
79+
- name: Check PHPUnit config file existence
80+
id: check_phpunit
8181
uses: andstor/file-existence-action@v1
82+
working-directory: apps/${{ env.APP_NAME }}
8283
with:
8384
files: ${{ env.PHPUNIT_CONFIG }}
8485

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

91-
- name: Check integration file existence
92-
id: check_files_integration
92+
- name: Check PHPUnit integration config file existence
93+
id: check_integration
9394
uses: andstor/file-existence-action@v1
95+
working-directory: apps/${{ env.APP_NAME }}
9496
with:
9597
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
9698

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

.github/workflows/phpunit-oci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,27 +68,29 @@ jobs:
6868
./occ app:enable --force ${{ env.APP_NAME }}
6969
php -S localhost:8080 &
7070
71-
- name: Check file existence
72-
id: check_files
71+
- name: Check PHPUnit config file existence
72+
id: check_phpunit
7373
uses: andstor/file-existence-action@v1
74+
working-directory: apps/${{ env.APP_NAME }}
7475
with:
7576
files: ${{ env.PHPUNIT_CONFIG }}
7677

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

83-
- name: Check integration file existence
84-
id: check_files_integration
84+
- name: Check PHPUnit integration config file existence
85+
id: check_integration
8586
uses: andstor/file-existence-action@v1
87+
working-directory: apps/${{ env.APP_NAME }}
8688
with:
8789
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
8890

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

.github/workflows/phpunit-pgsql.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,27 +73,29 @@ jobs:
7373
./occ app:enable --force ${{ env.APP_NAME }}
7474
php -S localhost:8080 &
7575
76-
- name: Check file existence
77-
id: check_files
76+
- name: Check PHPUnit config file existence
77+
id: check_phpunit
7878
uses: andstor/file-existence-action@v1
79+
working-directory: apps/${{ env.APP_NAME }}
7980
with:
8081
files: ${{ env.PHPUNIT_CONFIG }}
8182

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

88-
- name: Check integration file existence
89-
id: check_files_integration
89+
- name: Check PHPUnit integration config file existence
90+
id: check_integration
9091
uses: andstor/file-existence-action@v1
92+
working-directory: apps/${{ env.APP_NAME }}
9193
with:
9294
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
9395

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

.github/workflows/phpunit-sqlite.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,29 @@ jobs:
6262
./occ app:enable --force ${{ env.APP_NAME }}
6363
php -S localhost:8080 &
6464
65-
- name: Check file existence
66-
id: check_files
65+
- name: Check PHPUnit config file existence
66+
id: check_phpunit
6767
uses: andstor/file-existence-action@v1
68+
working-directory: apps/${{ env.APP_NAME }}
6869
with:
6970
files: ${{ env.PHPUNIT_CONFIG }}
7071

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

77-
- name: Check integration file existence
78-
id: check_files_integration
78+
- name: Check PHPUnit integration config file existence
79+
id: check_integration
7980
uses: andstor/file-existence-action@v1
81+
working-directory: apps/${{ env.APP_NAME }}
8082
with:
8183
files: ${{ env.PHPUNIT_INTEGRATION_CONFIG }}
8284

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

0 commit comments

Comments
 (0)