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 | |
parent | 540608682988c627d46b6891089183568db06798 (diff) |
Actions: Strictly define extensions
-rw-r--r-- | .github/workflows/build-release.yml | 6 | ||||
-rw-r--r-- | .github/workflows/frontend-tests.yml | 2 | ||||
-rw-r--r-- | .github/workflows/integration-tests.yml | 5 | ||||
-rw-r--r-- | .github/workflows/php-tests.yml | 22 |
4 files changed, 27 insertions, 8 deletions
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 1409326a7..56ae89329 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -17,7 +17,6 @@ jobs: php-versions: ['7.4'] nextcloud: ['stable20'] database: ['sqlite'] - experimental: [false] steps: - name: Checkout uses: actions/checkout@v2 @@ -26,6 +25,8 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} + extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip + coverage: none - name: Set up server non MySQL uses: SMillerDev/nextcloud-actions/setup-nextcloud@main @@ -35,7 +36,8 @@ jobs: database-type: ${{ matrix.database }} - name: build and create archive - run: cd ../server/apps/${{ env.APP_NAME }} && make && make appstore + working-directory: ../server/apps/${{ env.APP_NAME }} + run: make && make appstore env: app_private_key: ${{ secrets.APP_PRIVATE_KEY }} app_public_cert: ${{ secrets.APP_PUBLIC_CERT }} diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 699736ece..91cab7d8f 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -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: none ### Back to normal setup - name: Set up server non MySQL diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index fd80cb71f..5c77e784a 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -52,6 +52,8 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} + extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip + coverage: none ### MySQL specific setup - name: Setup mysql @@ -100,6 +102,9 @@ jobs: app: 'news' check-code: true + - name: Setup problem matchers for PHP + run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" + - name: Functional tests maintenance working-directory: ../server run: | 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 |