Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/phpunit-nodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Loading