Skip to content

Commit

Permalink
Test composer update - plugin config must be kept
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 2, 2024
1 parent 2adeb2a commit e34a564
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,16 @@ jobs:
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
- name: Test update - install plugin
run: |
cd test-composer
echo '// xxx no config update xxx' >> vendor/roundcube/roundcubemail/plugins/carddav/config.inc.php
composer update -v --prefer-dist --no-interaction --no-progress roundcube/carddav --prefer-lowest
- name: Test update - verify install
run: |
cd test-composer
ls -lah vendor/roundcube/roundcubemail/plugins/carddav/config.*
if [ ! -f vendor/roundcube/roundcubemail/plugins/carddav/config.inc.php ]; then echo 'Config file was deleted' && exit 1; fi
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 comments on commit e34a564

Please sign in to comment.