@@ -109,15 +109,24 @@ jobs:
109109 id : mysql_suite
110110 timeout-minutes : 65
111111 run : |
112+ mkdir -p build/test-results
112113 find tests/Feature -name '*Test.php' | sort | awk "((NR - 1) % 4) == ${{ matrix.shard }}" > /tmp/mysql-shard-files
113114 cat /tmp/mysql-shard-files
114- timeout --foreground 60m xargs -a /tmp/mysql-shard-files vendor/bin/phpunit --testdox --testsuite feature
115+ cp /tmp/mysql-shard-files "build/test-results/mysql-shard-${{ matrix.shard }}-files.txt"
116+ timeout --foreground 60m xargs -a /tmp/mysql-shard-files vendor/bin/phpunit --testdox --testsuite feature --log-junit "build/test-results/mysql-shard-${{ matrix.shard }}.xml"
115117 env :
116118 DB_CONNECTION : mysql
117119 DB_PORT : ${{ job.services.mysql.ports['3306'] }}
118120 QUEUE_CONNECTION : redis
119121 XDEBUG_MODE : off
120122
123+ - name : Upload MySQL feature timing report
124+ if : always()
125+ uses : actions/upload-artifact@v4
126+ with :
127+ name : feature-timing-mysql-${{ matrix.shard }}
128+ path : build/test-results/mysql-shard-${{ matrix.shard }}*
129+
121130 - name : Upload laravel.log if MySQL tests fail
122131 if : failure() || steps.mysql_suite.outcome == 'failure'
123132 uses : actions/upload-artifact@v4
@@ -192,9 +201,11 @@ jobs:
192201 id : pgsql_suite
193202 timeout-minutes : 65
194203 run : |
204+ mkdir -p build/test-results
195205 find tests/Feature -name '*Test.php' | sort | awk "((NR - 1) % 2) == ${{ matrix.shard }}" > /tmp/pgsql-shard-files
196206 cat /tmp/pgsql-shard-files
197- timeout --foreground 60m xargs -a /tmp/pgsql-shard-files vendor/bin/phpunit --testdox --testsuite feature
207+ cp /tmp/pgsql-shard-files "build/test-results/pgsql-shard-${{ matrix.shard }}-files.txt"
208+ timeout --foreground 60m xargs -a /tmp/pgsql-shard-files vendor/bin/phpunit --testdox --testsuite feature --log-junit "build/test-results/pgsql-shard-${{ matrix.shard }}.xml"
198209 env :
199210 DB_CONNECTION : pgsql
200211 DB_PORT : ${{ job.services.postgres.ports['5432'] }}
@@ -209,6 +220,13 @@ jobs:
209220 # silent hang.
210221 PGOPTIONS : " -c statement_timeout=120000 -c lock_timeout=30000 -c idle_in_transaction_session_timeout=60000"
211222
223+ - name : Upload PostgreSQL feature timing report
224+ if : always()
225+ uses : actions/upload-artifact@v4
226+ with :
227+ name : feature-timing-postgresql-${{ matrix.shard }}
228+ path : build/test-results/pgsql-shard-${{ matrix.shard }}*
229+
212230 - name : Upload laravel.log if PostgreSQL tests fail
213231 if : failure() || steps.pgsql_suite.outcome == 'failure'
214232 uses : actions/upload-artifact@v4
0 commit comments