Compare commits

...

3 Commits

Author SHA1 Message Date
Josh 3a53447b56 test(ci): intentional breakage to test Actions problem matcher output
Signed-off-by: Josh <josh.t.richards@gmail.com>
2026-04-11 11:53:07 -04:00
Josh 7294c16138 ci(phpunit): add problem matcher to nodb
Signed-off-by: Josh <josh.t.richards@gmail.com>
2026-04-11 11:50:26 -04:00
Josh 104c36d217 ci(phpunit): add problem matchers for GitHub Actions UI highlighting
Signed-off-by: Josh <josh.t.richards@gmail.com>
2026-04-11 11:38:21 -04:00
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -105,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
+1 -1
View File
@@ -25,7 +25,7 @@ use OCP\Util;
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));
}