From 1db0481ff458da0ff191b7141ac72c4df359fd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 20 Apr 2024 21:55:59 +0200 Subject: [PATCH 1/2] Test install with verbose composer --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f92107..95d2451 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: - name: Test - install plugin run: | cd test-composer - composer install --prefer-dist --no-interaction --no-progress + composer install -v --prefer-dist --no-interaction --no-progress - name: Test - verify install run: | From 7be93c389f929dbb82f96d43f6449211c9a082e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sun, 21 Apr 2024 14:38:27 +0200 Subject: [PATCH 2/2] Test Roundcubemail as root project install --- .github/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95d2451..b39dee6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,13 +93,26 @@ jobs: - name: Set COMPOSER_ROOT_VERSION run: echo "COMPOSER_ROOT_VERSION=0.3.99" >> $GITHUB_ENV - - name: Test - install plugin + - name: Test Roundcubemail as dependency - install plugin run: | cd test-composer composer install -v --prefer-dist --no-interaction --no-progress - - name: Test - verify install + - name: Test Roundcubemail as dependency - verify install run: | cd test-composer - ls -lah vendor/roundcube/roundcubemail/plugins/carddav - ls -lah vendor/roundcube/roundcubemail/plugins/carddav/config.inc.php + ls -lah vendor/roundcube/roundcubemail/plugins/carddav/config.* + if [ ! -f vendor/roundcube/roundcubemail/plugins/carddav/config.inc.php ]; then echo 'Config file was not created' && exit 1; fi + + - name: Test Roundcubemail as root project - install plugin + run: | + cd test-composer/vendor/roundcube/roundcubemail + ls -lah plugins/acl/config.* + if [ -f plugins/acl/config.inc.php ]; then echo 'Config file is not expected' && exit 1; fi + composer install -v --prefer-dist --no-interaction --no-progress + + - name: Test Roundcubemail as root project - verify install + run: | + cd test-composer/vendor/roundcube/roundcubemail + ls -lah plugins/acl/config.* + if [ ! -f plugins/acl/config.inc.php ]; then echo 'Config file was not created' && exit 1; fi