@@ -43,13 +43,14 @@ jobs:
4343 if : ${{ github.repository_owner != 'nextcloud-gmbh' && needs.changes.outputs.src != 'false' }}
4444
4545 strategy :
46+ fail-fast : false
4647 matrix :
47- php-versions : ['8.1', '8.2', '8.3', '8. 4']
48+ php-versions : ['8.1', '8.2', '8.4']
4849 include :
49- - php-versions : ' 8.2 '
50+ - php-versions : ' 8.3 '
5051 coverage : ${{ github.event_name != 'pull_request' }}
5152
52- name : php${{ matrix.php-versions }}-s3
53+ name : php${{ matrix.php-versions }}-s3-minio
5354
5455 services :
5556 minio :
6970 submodules : true
7071
7172 - name : Set up php ${{ matrix.php-versions }}
72- uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
73+ uses : shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e # v2.34.1
7374 with :
7475 php-version : ${{ matrix.php-versions }}
7576 # https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@@ -87,19 +88,19 @@ jobs:
8788 composer install
8889 ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
8990 ./occ app:enable --force files_external
90- echo "<?php return ['run' => true, 'secret' => 'actually-not-secret', 'passwordsalt' => 'actually-not-secret', 'hostname' => 'localhost','key' => '$OBJECT_STORE_KEY','secret' => '$OBJECT_STORE_SECRET', 'bucket' => 'bucket', 'port' => 9000, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/files_external/tests/config.amazons3.php
91+ echo "<?php return ['run' => true, 'minio' => true, ' secret' => 'actually-not-secret', 'passwordsalt' => 'actually-not-secret', 'hostname' => 'localhost','key' => '$OBJECT_STORE_KEY','secret' => '$OBJECT_STORE_SECRET', 'bucket' => 'bucket', 'port' => 9000, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/files_external/tests/config.amazons3.php
9192
9293 - name : Wait for S3
9394 run : |
94- sleep 10
9595 curl -f -m 1 --retry-connrefused --retry 10 --retry-delay 10 http://localhost:9000/minio/health/ready
9696
9797 - name : PHPUnit
98- run : composer run test:files_external -- \
99- apps/files_external/tests/Storage/Amazons3Test.php \
100- apps/files_external/tests/Storage/VersionedAmazonS3Test.php \
101- --log-junit junit.xml \
102- ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }}
98+ run : |
99+ composer run test:files_external -- \
100+ --group S3 \
101+ --log-junit junit.xml \
102+ apps/files_external/tests/Storage \
103+ ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }}
103104
104105 - name : Upload code coverage
105106 if : ${{ !cancelled() && matrix.coverage }}
@@ -114,6 +115,11 @@ jobs:
114115 with :
115116 flags : phpunit-files-external-s3
116117
118+ - name : Nextcloud logs
119+ if : always()
120+ run : |
121+ cat data/nextcloud.log
122+
117123 - name : S3 logs
118124 if : always()
119125 run : |
@@ -128,19 +134,19 @@ jobs:
128134
129135 strategy :
130136 matrix :
131- php-versions : ['8.1', '8.2', '8.3 ']
137+ php-versions : ['8.1', '8.2', '8.4 ']
132138 include :
133139 - php-versions : ' 8.3'
134- coverage : true
140+ coverage : ${{ github.event_name != 'pull_request' }}
135141
136- name : php${{ matrix.php-versions }}-s3
142+ name : php${{ matrix.php-versions }}-s3-localstack
137143
138144 services :
139145 localstack :
140146 env :
141147 SERVICES : s3
142148 DEBUG : 1
143- image : localstack/localstack@sha256:b52c16663c70b7234f217cb993a339b46686e30a1a5d9279cb5feeb2202f837c # v4.4 .0
149+ image : localstack/localstack@sha256:9d4253786e0effe974d77fe3c390358391a56090a4fff83b4600d8a64404d95d # v4.5 .0
144150 ports :
145151 - " 4566:4566"
146152
@@ -152,7 +158,7 @@ jobs:
152158 submodules : true
153159
154160 - name : Set up php ${{ matrix.php-versions }}
155- uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
161+ uses : shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e # v2.34.1
156162 with :
157163 php-version : ${{ matrix.php-versions }}
158164 # https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@@ -167,14 +173,15 @@ jobs:
167173 composer install
168174 ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
169175 ./occ app:enable --force files_external
170- echo "<?php return ['run' => true,'hostname' => 'localhost','key' => 'ignored','secret' => 'ignored', 'bucket' => 'bucket', 'port' => 4566, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/files_external/tests/config.amazons3.php
176+ echo "<?php return ['run' => true, 'localstack' => true, 'hostname' => 'localhost','key' => 'ignored','secret' => 'ignored', 'bucket' => 'bucket', 'port' => 4566, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/files_external/tests/config.amazons3.php
171177
172178 - name : PHPUnit
173- run : composer run test:files_external -- \
174- apps/files_external/tests/Storage/Amazons3Test.php \
175- apps/files_external/tests/Storage/VersionedAmazonS3Test.php \
176- --log-junit junit.xml \
177- ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }}
179+ run : |
180+ composer run test:files_external -- \
181+ --group S3 \
182+ --log-junit junit.xml \
183+ apps/files_external/tests/Storage \
184+ ${{ matrix.coverage && '--coverage-clover ./clover.xml' || '' }}
178185
179186 - name : Upload code coverage
180187 if : ${{ !cancelled() && matrix.coverage }}
0 commit comments