Skip to content

Commit e34a564

Browse files
committed
Test composer update - plugin config must be kept
1 parent 2adeb2a commit e34a564

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,16 @@ jobs:
116116
cd test-composer/vendor/roundcube/roundcubemail
117117
ls -lah plugins/acl/config.*
118118
if [ ! -f plugins/acl/config.inc.php ]; then echo 'Config file was not created' && exit 1; fi
119+
120+
- name: Test update - install plugin
121+
run: |
122+
cd test-composer
123+
echo '// xxx no config update xxx' >> vendor/roundcube/roundcubemail/plugins/carddav/config.inc.php
124+
composer update -v --prefer-dist --no-interaction --no-progress roundcube/carddav --prefer-lowest
125+
126+
- name: Test update - verify install
127+
run: |
128+
cd test-composer
129+
ls -lah vendor/roundcube/roundcubemail/plugins/carddav/config.*
130+
if [ ! -f vendor/roundcube/roundcubemail/plugins/carddav/config.inc.php ]; then echo 'Config file was deleted' && exit 1; fi
131+
if ! grep -Fq 'xxx no config update xxx' vendor/roundcube/roundcubemail/plugins/carddav/config.inc.php; then echo 'Config file was replaced' && exit 1; fi

0 commit comments

Comments
 (0)