4545 strategy :
4646 fail-fast : false
4747 matrix :
48- php-versions : ['8.1', '8.2', '8.3', '8. 4']
48+ php-versions : ['8.1', '8.2', '8.4']
4949 include :
50- - php-versions : ' 8.2 '
50+ - php-versions : ' 8.3 '
5151 coverage : ${{ github.event_name != 'pull_request' }}
5252
5353 name : php${{ matrix.php-versions }}-s3-minio
@@ -88,18 +88,19 @@ jobs:
8888 composer install
8989 ./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
9090 ./occ app:enable --force files_external
91- 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
9292
9393 - name : Wait for S3
9494 run : |
95- sleep 10
9695 curl -f -m 1 --retry-connrefused --retry 10 --retry-delay 10 http://localhost:9000/minio/health/ready
9796
9897 - name : PHPUnit
99- run : composer run test:files_external -- \
100- apps/files_external/tests/Storage/Amazons3Test.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,7 +134,7 @@ 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'
134140 coverage : ${{ github.event_name != 'pull_request' }}
@@ -140,7 +146,7 @@ jobs:
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
@@ -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