File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ permissions:
77 contents : read
88
99env :
10- E2E_NODE_VERSION : " 20" # TODO: Extract automatically using another action
10+ E2E_NODE_VERSION : " 20"
11+ STALWART_PWD : " secretpassword"
1112
1213jobs :
1314 unit-tests :
9495 cache : ' redis'
9596 name : ${{ matrix.nextcloud-versions }} w/ php${{ matrix.php-versions }}-${{ matrix.db }}-${{ matrix.cache }} integration tests ${{ matrix.coverage && '(coverage)' || ''}}
9697 services :
97- mail-service :
98+ mail-dovecot- service :
9899 image : ghcr.io/christophwurst/docker-imap-devel:latest
99100 env :
100101 MAILNAME : mail.domain.tld
@@ -105,6 +106,15 @@ jobs:
105106 - 143:143
106107 - 993:993
107108 - 4190:4190
109+ mail-stalwart-service :
110+ image : stalwartlabs/stalwart:latest
111+ env :
112+ STALWART_ADMIN_PASSWORD : ${{ env.STALWART_PWD }}
113+ ports :
114+ - 10080:8080
115+ - 10025:25
116+ - 10143:143
117+ - 10993:993
108118 mariadb-service :
109119 image : ghcr.io/nextcloud/continuous-integration-mariadb-11.4:latest
110120 env :
@@ -142,6 +152,11 @@ jobs:
142152 ports :
143153 - 6379:6379
144154 steps :
155+ - name : Create domain and account in Stalwart
156+ run : |
157+ docker exec ${{ job.services.mail-stalwart-service.id }} \
158+ stalwart-cli -u http://localhost:8080 -c admin:${{ env.STALWART_PWD }} domain create example.com
159+ stalwart-cli -u http://localhost:8080 -c admin:${{ env.STALWART_PWD }} account create user@example.com mypassword
145160 - name : Set up Nextcloud env
146161 uses : ChristophWurst/setup-nextcloud@14cf58de73855aa30212721e8177ca45626e4477 # v0.4.2
147162 with :
You can’t perform that action at this time.
0 commit comments