diff options
Diffstat (limited to '.github/workflows/php-tests.yml')
-rw-r--r-- | .github/workflows/php-tests.yml | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/.github/workflows/php-tests.yml b/.github/workflows/php-tests.yml index 7213fc97f..e057bbda4 100644 --- a/.github/workflows/php-tests.yml +++ b/.github/workflows/php-tests.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: php-versions: ['7.4'] - nextcloud: ['v21.0.0beta6'] + nextcloud: ['v21.0.0RC1'] database: ['sqlite'] experimental: [false] steps: @@ -21,6 +21,8 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} + extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip + coverage: pcov ### Back to normal setup - name: Set up server non MySQL @@ -39,13 +41,21 @@ jobs: app: 'news' check-code: true + - name: Setup problem matchers for PHPUnit + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Prep PHP tests - run: cd ../server/apps/news && make php-test-dependencies + working-directory: ../server/apps/news + run: make php-test-dependencies - name: PHPCS - run: cd ../server/apps/news && make phpcs + working-directory: ../server/apps/news + run: make phpcs - name: PHPStan - run: cd ../server/apps/news && make phpstan + working-directory: ../server/apps/news + run: make phpstan - name: Unittests - run: cd ../server/apps/news && make unit-test + working-directory: ../server/apps/news + run: make unit-test - name: Upload codecoverage - run: cd ../server/apps/news && bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover + working-directory: ../server/apps/news + run: bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover |