diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-02-04 20:58:39 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-02-05 07:27:11 +0100 |
commit | bb6fb66b57bf0d3b9b035c0cb64c21b40990802a (patch) | |
tree | 3ec94cc99fc13fde9ce5b705fddab45f76493eee /.github/workflows/php-tests.yml | |
parent | 540608682988c627d46b6891089183568db06798 (diff) |
Actions: Strictly define extensions
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 |