Skip to content

Commit ea678dd

Browse files
committed
Install composer dependencies for dokuwiki/dokuwiki#4065
This does not run the installed tools yet but still relies on the ones installed by the github setup-php action. After the next DokuWiki release the composer dependencies will land in stable and we can start relying on them.
1 parent 8949a37 commit ea678dd

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/autofix.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
with:
3838
branch: master
3939

40+
- name: Install Composer Dependencies
41+
run: |
42+
cd _test
43+
composer install --no-progress --no-suggest --no-interaction --prefer-dist --optimize-autoloader --no-scripts
44+
4045
- name: Run Rector (PHP ${{ inputs.rector-php }})
4146
env:
4247
RECTOR_MIN_PHP: ${{ inputs.rector-php }}

.github/workflows/cs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,10 @@ jobs:
2828
with:
2929
branch: master
3030

31+
- name: Install Composer Dependencies
32+
run: |
33+
cd _test
34+
composer install --no-progress --no-suggest --no-interaction --prefer-dist --optimize-autoloader --no-scripts
35+
3136
- name: Run PHP codesniffer
3237
run: phpcs -q --standard=_test/phpcs.xml ${{ steps.dokuwiki-env.outputs.dir }}

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,16 @@ jobs:
4444
with:
4545
branch: ${{ matrix.dokuwiki-branch }}
4646

47+
- name: Install Composer Dependencies
48+
run: |
49+
cd _test
50+
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader --no-scripts
51+
4752
- name: Setup PHPUnit
4853
run: |
49-
php _test/fetchphpunit.php
54+
if [ -f _test/fetchphpunit.php ]; then
55+
php _test/fetchphpunit.php
56+
fi
5057
5158
- name: Check Syntax
5259
run: |
@@ -55,4 +62,8 @@ jobs:
5562
- name: Run PHPUnit
5663
run: |
5764
cd _test
58-
php phpunit.phar --verbose --stderr --group ${{ steps.dokuwiki-env.outputs.type }}_${{ steps.dokuwiki-env.outputs.base }}
65+
if [ -f phpunit.phar ]; then
66+
php phpunit.phar --verbose --stderr --group ${{ steps.dokuwiki-env.outputs.type }}_${{ steps.dokuwiki-env.outputs.base }}
67+
else
68+
composer exec -- phpunit --verbose --stderr --group ${{ steps.dokuwiki-env.outputs.type }}_${{ steps.dokuwiki-env.outputs.base }}
69+
fi

0 commit comments

Comments
 (0)