From 104c36d217cb7f22365bed77e37ec82a714851f5 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 11 Apr 2026 11:38:21 -0400 Subject: [PATCH 1/3] ci(phpunit): add problem matchers for GitHub Actions UI highlighting Signed-off-by: Josh --- .github/workflows/phpunit-nodb.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/phpunit-nodb.yml b/.github/workflows/phpunit-nodb.yml index 023b36175554a..5bdfc75abe69d 100644 --- a/.github/workflows/phpunit-nodb.yml +++ b/.github/workflows/phpunit-nodb.yml @@ -94,6 +94,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Setup problem matchers for PHPUnit + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Set up dependencies run: composer i From 7294c16138f6c6e40a0a2aab7ce6591bfb4261ba Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 11 Apr 2026 11:50:26 -0400 Subject: [PATCH 2/3] ci(phpunit): add problem matcher to nodb Signed-off-by: Josh --- .github/workflows/phpunit-nodb.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpunit-nodb.yml b/.github/workflows/phpunit-nodb.yml index 5bdfc75abe69d..7f8ddaeb0bf35 100644 --- a/.github/workflows/phpunit-nodb.yml +++ b/.github/workflows/phpunit-nodb.yml @@ -94,9 +94,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Setup problem matchers for PHPUnit - run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Set up dependencies run: composer i @@ -108,9 +105,15 @@ jobs: ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin php -f tests/enable_all.php + - name: Add problem matchers for PHPUnit + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: PHPUnit nodb testsuite run: composer run test -- --exclude-group DB --exclude-group SLOWDB --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.nodb.xml' || '' }} + - name: Remove problem matchers for PHPUnit + run: echo "::remove-matcher owner=phpunit::" + - name: Upload nodb code coverage if: ${{ !cancelled() && matrix.coverage }} uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 From 3a53447b5623780a0ce6bf1552f9575c0579b2c4 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 11 Apr 2026 11:53:07 -0400 Subject: [PATCH 3/3] test(ci): intentional breakage to test Actions problem matcher output Signed-off-by: Josh --- tests/lib/UtilTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php index 6738cafdb1ff2..e896d72980e82 100644 --- a/tests/lib/UtilTest.php +++ b/tests/lib/UtilTest.php @@ -25,7 +25,7 @@ class UtilTest extends \Test\TestCase { public function testGetVersion(): void { $version = Util::getVersion(); - $this->assertTrue(is_array($version)); + $this->assertTrue(!is_array($version)); foreach ($version as $num) { $this->assertTrue(is_int($num)); }